logo       

Re: bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0: msg#00034

lang.haskell.glasgow.bugs

Subject: Re: bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise