Specifically, I want to do something like this :
myfunc:: [(Integer, Integer)]
myfunc = [(x^2 - y^2, 2 * x * y) | x <- [1..], y <- [1.. (x-1)]]
When I try to load this through ghci
I get
Warning: Defaulting the following constraint(s) to type `Integer'
`Integral t' arising from a use of `^' at myfunc.hs:76:20-22
So I know that x should obviously be an Integer
, how do I go ahead and let Haskell know thats what I want ?