[Haskell-cafe] Problem with class Control.Monad.Error noMsg usage
Aaron Gray
aaronngray.lists at gmail.com
Tue Dec 21 16:28:22 CET 2010
I have been trying to build the Scheme in 24 Hours on WikiBooks :-
http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours
http://jonathan.tang.name/files/scheme_in_48/code/listing10.hs
But I am getting an error :-
scheme.hs:289:6: `noMsg' is not a (visible) method of class `Error'
scheme.hs:290:6:
`strMsg' is not a (visible) method of class `Error'
with the following :-
instance Error LispError where
noMsg = Default "An error has occurred"
strMsg = Default
if I try importing them :-
import Control.Monad.Error (noMsg, strMsg)
I get the following :-
scheme.hs:4:29:
Module `Control.Monad.Error' does not export `noMsg'
scheme.hs:4:36:
Module `Control.Monad.Error' does not export `strMsg'
Many thanks in advance,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20101221/5b2762d6/attachment.htm>
More information about the Haskell-Cafe
mailing list