[Haskell-beginners] Doubts regarding the "read" function.

Kim-Ee Yeoh ky3 at atamo.com
Sat Dec 13 16:49:26 UTC 2014


On Sat, Dec 13, 2014 at 2:44 PM, Venu Chakravorty <venuchv at gmail.com> wrote:
>
> Prelude> read "hello " ++ "world"
> "*** Exception: Prelude.read: no parse
>

Yes, as Bob said, first take a look at: show "hello"

Then redo your expression as: read (show "hello") ++ "world"


-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20141213/27997493/attachment.html>


More information about the Beginners mailing list