Prelude> read "1234" :: String -> "*** Exception: Prelude.read: no parse

6 Aug
2011
6 Aug
'11
7:57 p.m.
Prelude> read "1234" :: Int1234Prelude> read "1234" :: String"*** Exception: Prelude.read: no parse Why? Michael

6 Aug
6 Aug
8 p.m.
New subject: Prelude> read "1234" :: String -> "*** Exception: Prelude.read: no parse
read expects strings to be quoted:
Prelude> read "\"1234\"" :: String
"1234"
On Sat, Aug 6, 2011 at 19:57, michael rice
Prelude> read "1234" :: Int 1234 Prelude> read "1234" :: String "*** Exception: Prelude.read: no parse
Why?
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Scott Lawrence
5040
Age (days ago)
5041
Last active (days ago)
1 comments
2 participants
participants (2)
-
michael rice
-
Scott Lawrence