[Haskell-beginners] consing an element to a list inside a file

kane96 at gmx.de kane96 at gmx.de
Wed Feb 10 15:52:48 EST 2010


Hi,
I want to add an element to a list inside a haskell file:
mylist = [1,2,3,4]
0:mylist
in Prelude it works fine, but when I do it in a file I get the error: 
parse error (possibly incorrect indentation)
Failed, modules loaded: none.
in a line after this two that doesn't exist
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser


More information about the Beginners mailing list