[Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread michael rice
How do I import Control.Monad.State? I see this note in http://en.wikibooks.org/wiki/Haskell/Understanding_monads/State   Note: in some package systems used for GHC, the Control.Monad.State module is in a separate package, usually indicated by MTL (Monad Transformer Library). Michael

Re: [Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread Ivan Miljenovic
On 28 July 2010 12:39, michael rice nowg...@yahoo.com wrote: How do I import Control.Monad.State? Install and use the mtl library (comes with the Haskell platform), monads-fd (almost identical API to mtl; the point of this is that mtl uses some extension: the non-extension bits are in the

Re: [Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread michael rice
[mich...@localhost ~]$ ghc-pkg list mtl /usr/lib/ghc-6.12.1/package.conf.d [mich...@localhost ~]$ Installed? Michael --- On Tue, 7/27/10, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: From: Ivan Miljenovic ivan.miljeno...@gmail.com Subject: Re: [Haskell-cafe] Need Control.Monad.State

Re: [Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread Ivan Miljenovic
...@gmail.com wrote: From: Ivan Miljenovic ivan.miljeno...@gmail.com Subject: Re: [Haskell-cafe] Need Control.Monad.State To: michael rice nowg...@yahoo.com Cc: haskell-cafe@haskell.org Date: Tuesday, July 27, 2010, 10:51 PM On 28 July 2010 12:39, michael rice nowg...@yahoo.com wrote: How do I

Re: [Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread Felipe Lessa
On Wed, Jul 28, 2010 at 12:04 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: On 28 July 2010 13:03, michael rice nowg...@yahoo.com wrote: [mich...@localhost ~]$ ghc-pkg list mtl /usr/lib/ghc-6.12.1/package.conf.d [mich...@localhost ~]$ Installed? No; if it was installed it would

Re: [Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread michael rice
See below. Lot's of warnings. Is the install OK? If so, can I use the same *import*? Michael --- On Tue, 7/27/10, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: If it isn't installed, you can use cabal-install to install it: cabal install mtl -- Ivan Lazar Miljenovic

Re: [Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread Ivan Miljenovic
On 28 July 2010 13:17, michael rice nowg...@yahoo.com wrote: See below. Lot's of warnings. Is the install OK? If so, can I use the same *import*? Yeah, the install is OK. The meaning of the warnings are: * Warning: -fallow-undecidable-instances is deprecated: this GHC option has changed

Re: [Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread aditya siram
I didn't realize the State monad wasn't part of the base install. Any particular reason for this? -deech On Tue, Jul 27, 2010 at 10:24 PM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: On 28 July 2010 13:17, michael rice nowg...@yahoo.com wrote: See below. Lot's of warnings. Is the

Re: [Haskell-cafe] Need Control.Monad.State

2010-07-27 Thread Ivan Miljenovic
On 28 July 2010 14:07, aditya siram aditya.si...@gmail.com wrote: I didn't realize the State monad wasn't part of the base install. Any particular reason for this? Because there's no reason for it to be? GHC is bundled with enough libraries as it is (and with the exception of Cabal, it's not