|
RE: bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0: msg#00033lang.haskell.glasgow.bugs
I'm afraid you are stuck with this. With -fglasgow-exts you do lose some existing syntax (to give space for the new stuff) and this is one such instance. (# and #) are new punctuation for -fglasgow-exts We do not have a place in the manual that collects all the syntax that -fglasgow-exts captures. If someone would like to draft one, that would be a great help and we'd be happy to put it in. Simon | -----Original Message----- | From: glasgow-haskell-bugs-admin@xxxxxxxxxxx [mailto:glasgow-haskell-bugs-admin@xxxxxxxxxxx] On | Behalf Of Bernard James POPE | Sent: 06 June 2003 11:00 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Cc: Bernard James POPE | Subject: bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0 | | Hi all, | | I seem to remember reading about this before, but I can't | find it, so I'm sorry if I'm repeating a known bug report. | | It seems that -fglasgow-exts has trouble with (##) as an | operator: | | module Main where | f ## x = f x | main = print $ (##) id True | | It doesn't like the prefix use of (##). Infix use is fine. | The problem goes away without -fglasgow-exts | | I guess this has to do with the use of # for unboxed types | that is introduced by -fglasgow-exts | | Happens with version 6.0 and 5.04.3 (at least) | | Here's the output from ghci: | | bjpop@bjpop3:/tmp$ ghci -fglasgow-exts Hash.hs | ___ ___ _ | / _ \ /\ /\/ __(_) | / /_\// /_/ / / | | GHC Interactive, version 6.0, for Haskell 98. | / /_\\/ __ / /___| | http://www.haskell.org/ghc/ | \____/\/ /_/\____/|_| Type :? for help. | | Loading package base ... linking ... done. | Compiling Main ( Hash.hs, interpreted ) | Hash.hs:5: parse error on input `#)' | | Cheers, | Bernie. | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0, Bernard James POPE |
|---|---|
| Next by Date: | Re: bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0, Tomasz Zielonka |
| Previous by Thread: | Re: bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0, Tomasz Zielonka |
| Next by Thread: | Strange ghci :def failure, George Russell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |