[Haskell-beginners] Parse error

Shishir Srivastava shishir.srivastava at gmail.com
Wed Apr 15 16:21:20 UTC 2015


Hi,

I am trying to run the following from the GHCi command prompt which results
in parse error.

--------------
Prelude> :{
Prelude| foo :: Maybe String
Prelude| foo = do
Prelude|     x <- Just 3
Prelude|     y <- Just "!"
Prelude|     Just (show x ++ y)
Prelude| :}

<interactive>:145:5: parse error on input `='
---------------

Any help would be appreciated.

Thanks,
Shishir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150415/096a834e/attachment.html>


More information about the Beginners mailing list