[Haskell-beginners] Parse error: naked expression at top level

Manfred Lotz manfred.lotz at arcor.de
Wed Jul 20 18:52:20 CEST 2011


On Wed, 20 Jul 2011 15:50:13 +0000
Roelof Wobben <rwobben at hotmail.com> wrote:

> 
> Oke, 
> 
> So  In the file I have to load I must put the first 2 lines.
> And in the prompt I have to do the last line,
> 
> Or is there a way I can use all three lines in a file ?
> 

Why not something like this?

mytest = replicate 3 True

Then you can load it.


-- 
Manfred





More information about the Beginners mailing list