Hi Russ,
You probably have the monomorphism restriction turned of, so you don't get an error message. If you add a type, it will work fine. Like this:
Prelude> read "123"
*** Exception: Prelude.read: no parse
Prelude> read "123" :: Int
123
Prelude>
Greets,
Edgar
Hi,I'm having a problem with the read function. I thought it took a string and converted it into a value (if there is a conversion). But it doesn't seem to work for me on GHCiPrelude> read "123"*** Exception: Prelude.read: no parsePrelude> read (show 123)*** Exception: Prelude.read: no parseThere must be something trivial that I'm missing.Thanks.-- Russ Abbott
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners