[Haskell-beginners] Parse error
emacstheviking
objitsu at gmail.com
Wed Apr 15 16:24:23 UTC 2015
Either(!) its TAB characters upsetting things or not possible form the
command line. Maybe(!!) try saving to a file then using the load command to
do it instead.
On 15 April 2015 at 17:21, Shishir Srivastava <shishir.srivastava at gmail.com>
wrote:
> 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
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150415/540cf508/attachment.html>
More information about the Beginners
mailing list