Prelude> read "1234" :: String -> "*** Exception: Prelude.read: no parse
7 Aug
2011
7 Aug
'11
7:57 a.m.
Prelude> read "1234" :: Int1234Prelude> read "1234" :: String"*** Exception: Prelude.read: no parse Why? Michael
7 Aug
7 Aug
8 a.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 <nowgate@yahoo.com> wrote:
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
5466
Age (days ago)
5467
Last active (days ago)
1 comments
2 participants
participants (2)
-
michael rice -
Scott Lawrence