
15 Apr
2015
15 Apr
'15
12:21 p.m.
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