Re: [Haskell-cafe] Cabal/primes

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
OK, I downloaded Numbers. Still missing the three functions I wanted, which are primes, isPrime, and isProbablyPrime. How do I get these?
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-----Inline Attachment Follows----- _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

nowgate:
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?
Easy! $ ghc-pkg unregister primes -- Don

On this note, shouldn't there be "cabal uninstall"?
-- ryan
On Wed, Jun 3, 2009 at 3:40 PM, Don Stewart
nowgate:
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?
Easy!
$ ghc-pkg unregister primes
-- Don _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Thu, Jun 4, 2009 at 9:52 AM, Ryan Ingram
On this note, shouldn't there be "cabal uninstall"?
You mean ticket 234? http://hackage.haskell.org/trac/hackage/ticket/234 Yes, its been open for a year and has been quietly waiting for developer time... are you the lucky developer who gets to implement it? Thomas
participants (4)
-
Don Stewart
-
michael rice
-
Ryan Ingram
-
Thomas DuBuisson