So In the file I have to load I must put the first 2 lines.
Date: Wed, 20 Jul 2011 11:47:51 -0400
Subject: Re: [Haskell-beginners] Parse error: naked expression at top level
From: allbery.b@gmail.com
To: rwobben@hotmail.com
CC: beginners@haskell.org
On Wed, Jul 20, 2011 at 11:30, Roelof Wobben
<rwobben@hotmail.com> wrote:
replicate :: Int -> a -> [a]
replicate a xs = [xs | x' <= a <--xs]
replicate 3 True
That last line is fine at a GHCi prompt but not in a program. (Files loaded by ghci are not scripts! They are treated the same way as program files fed to ghc or runhaskell.)
--
brandon s allbery
allbery.b@gmail.comwandering unix systems administrator (available) (412) 475-9364 vm/sms