import Prelude ([](..))
MartinSjögren
md9ms at mdstud.chalmers.se
Fri Nov 7 11:14:58 EST 2003
Hello ghc users!
In my experiments with analyzing Haskell programs, I frequently use my
own Prelude variants but want to import parts of the real Prelude for
simplicity.
In ghc 5, I could write:
import Prelude ([](..))
and then use lists as usual. In ghc 6, though, I get:
"parse error on input `['"
Is there a secret way to import the list type that I don't know of? Is
ghc 5 or ghc 6 wrong? :)
Using the "hiding" is not really an option, since I normally want just
one or two types from the Prelude and then provide other things myself.
Regards,
Martin
--
Martin Sjögren
sjogren at debian.org -- marvin at dum.chalmers.se
GPG key: http://www.mdstud.chalmers.se/~md9ms/gpg.html
let hello = "hello" : hello in putStr (unlines hello)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad
meddelandedel
Url : http://haskell.org/pipermail/glasgow-haskell-users/attachments/20031107/c6e309e1/attachment.bin
More information about the Glasgow-haskell-users
mailing list