[Haskell-cafe] Example code won't compile

michael rice nowgate at yahoo.com
Fri May 15 23:27:26 EDT 2009

OK. Thanks, everyone.


--- On Fri, 5/15/09, Krzysztof Skrzętnicki <gtener at gmail.com> wrote:

From: Krzysztof Skrzętnicki <gtener at gmail.com>
Subject: Re: [Haskell-cafe] Example code won't compile
To: "michael rice" <nowgate at yahoo.com>
Cc: "Lennart Augustsson" <lennart.augustsson at gmail.com>, "haskell-cafe at haskell.org" <haskell-cafe at haskell.org>
Date: Friday, May 15, 2009, 9:55 PM

The one important line is
> import Control.Monad.Error
It adds dependancy on mtl package, which is not used by default
(contrary to 'base' package, which includes Monad, System and IO
modules). With --make GHC adds it automatically. Therefore
$ ghc -package mtl ex14.hs
compiles fine. I'd recommend using --make. In rare occasions when
there is a namespace clash between packages one can simply hide
offending packages or specify preferred ones.

Best regards

Christopher Skrzętnicki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090515/7bf4ac5b/attachment.html

More information about the Haskell-Cafe mailing list