Prelude> read "1234" :: String -> "*** Exception: Prelude.read: no parse
6 Aug
2011
6 Aug
'11
11:57 p.m.
Prelude> read "1234" :: Int1234Prelude> read "1234" :: String"*** Exception: Prelude.read: no parse Why? Michael
7 Aug
7 Aug
midnight
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
5500
Age (days ago)
5501
Last active (days ago)
1 comments
2 participants
participants (2)
-
michael rice -
Scott Lawrence