[Haskell-beginners] Parse error: naked expression at top level
Roelof Wobben
rwobben at hotmail.com
Wed Jul 20 17:30:02 CEST 2011
Hello,
I made this little script :
replicate :: Int -> a -> [a]
replicate a xs = [xs | x' <= a <--xs]
replicate 3 True
But when I let it run in GHCi, version 7.0.3 on a FreeBSD box I see this error :
oefening.hs:4:1: Parse error: naked expression at top level
Failed, modules loaded: none.
How can I solve this and what does it mean.
Roelof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110720/31d7518f/attachment-0001.htm>
More information about the Beginners
mailing list