OK. Thanks, everyone. Michael
--- On Fri, 5/15/09, Krzysztof Skrzętnicki <[email protected]> wrote: From: Krzysztof Skrzętnicki <[email protected]> Subject: Re: [Haskell-cafe] Example code won't compile To: "michael rice" <[email protected]> Cc: "Lennart Augustsson" <[email protected]>, "[email protected]" <[email protected]> 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
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
