I'm new to Haskell. Following list comprehension dose not work good. ghci stop it's output. (after type '7', ghci stop long long time.)
Prelude Data.Numbers.Primes> [x | x <- primes, x <= 10]
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package old-locale-1.0.0.5 ... linking ... done.
Loading package time-1.4.0.1 ... linking ... done.
Loading package random-1.0.1.1 ... linking ... done.
Loading package Numbers-0.2.1 ... linking ... done.
[2,3,5,7^Z
[2]+ Stopped ghci
Why ghci stop its working and how can I fix it? Thank you.
Data.Numbers.Primes
is from theprimes
package, not his code. – Carl