Why this Haskell expression won't get a result?

Viewed 118

I try to run this in GHCi:

take 100 [ (a,b,c) | a <- [1..], b <- [1..], c <- [1..], a^2 + b^2 == c^2, a<b ]

I would expect it to be calculated because of the lazyness of take, but that's not the case. Why?

2 Answers
Related