
Hi. On wich system are you using GHCi ? Probably I missed this information from the previous mail. I'm using GHC 7.0.4 on MacOS X 10.6.8 (Xcode 4) and all works fine with [x^2 | x <- [1..10]]. You can try to see if you installation of ghc is ok typing "ghc-pkg list" from a console, or using the command ghc -v to see if there are some strange notification. Luca. On Jul 14, 2011, at 9:55 AM, Roelof Wobben wrote:
Oke,
I tried with Ghci 7.03 on the prompt but then I see this:
[x^2 | x <-- [1..100]
not in scope x not in scope <--
When I put the text in a file I see these errors.
parse error : naked expression at top level.
Roelof
----------------------------------------
Date: Wed, 13 Jul 2011 23:04:58 +0200 From: andres.loeh@googlemail.com To: beginners@haskell.org Subject: Re: [Haskell-beginners] question
I've just tried to evaluate 2 ^ 5 in codepad and it worked for me, so (^) seems to be supported.
Cheers, Andres
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners