bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0
Tomasz Zielonka
t.zielonka at students.mimuw.edu.pl
Fri Jun 6 06:15:01 EDT 2003
On Fri, Jun 06, 2003 at 08:00:00PM +1000, Bernard James POPE wrote:
> 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
You can write ( ## )
It reminds me of OCaml and its problem with prefix use of * operator. (*
is a begining of a comment on OCaml *).
Best regards,
Tom
--
.signature: Too many levels of symbolic links
More information about the Glasgow-haskell-bugs
mailing list