
Finally got adventurous enough to get Cabal working, downloaded the primes package, and got the following error message when trying isPrime. Am I missing something here? Michael ================== [michael@localhost ~]$ ghci GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. Prelude> import Data.Numbers.Primes Prelude Data.Numbers.Primes> take 10 primes Loading package syb ... linking ... done. Loading package base-3.0.3.0 ... linking ... done. Loading package primes-0.1.1 ... linking ... done. [2,3,5,7,11,13,17,19,23,29] Prelude Data.Numbers.Primes> isPrime 7 <interactive>:1:0: Not in scope: `isPrime' Prelude Data.Numbers.Primes>

michael rice wrote:
Finally got adventurous enough to get Cabal working, downloaded the primes package, and got the following error message when trying isPrime. Am I missing something here?
The Data.Numbers.Primes module of the primes package does not implement 'isPrime'. The Numbers package is probably the one you want. Bertram
participants (2)
-
Bertram Felgenhauer
-
michael rice