[Haskell-cafe] Cabal/primes

michael rice nowgate at yahoo.com
Tue Jun 2 19:33:23 EDT 2009

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 at 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- ... linking ... done.
Loading package primes-0.1.1 ... linking ... done.
Prelude Data.Numbers.Primes> isPrime 7

<interactive>:1:0: Not in scope: `isPrime'
Prelude Data.Numbers.Primes> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090602/09b8ccbb/attachment.html

More information about the Haskell-Cafe mailing list