Got it working. I downloaded two packages, primes and Numbers. Since Numbers has the three functions I want to use, primes, isPrime and isProbablyPrime, how do I uninstall the primes package so there won't be a conflict? Michael ================= [michael@localhost hackage.haskell.org]$ ghc-pkg hide primes Writing new package config file... done. [michael@localhost hackage.haskell.org]$ isPrime 7 bash: isPrime: command not found [michael@localhost hackage.haskell.org]$ 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> :m + Data.Numbers.Primes Prelude Data.Numbers.Primes> isPrime 7 Loading package syb ... linking ... done. Loading package base-3.0.3.0 ... linking ... done. Loading package old-locale-1.0.0.1 ... linking ... done. Loading package old-time-1.0.0.1 ... linking ... done. Loading package random-1.0.0.1 ... linking ... done. Loading package Numbers-0.2.1 ... linking ... done. True Prelude Data.Numbers.Primes> take 10 primes [2,3,5,7,11,13,17,19,23,29] Prelude Data.Numbers.Primes> --- On Wed, 6/3/09, michael rice <nowgate@yahoo.com> wrote:
|