[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] "--" comments

Subject: Re: [Haskell-cafe] "--" comments
From: Daniel Peebles
Date: Fri, 11 Dec 2009 23:33:41 -0500
let (--*) = (+) in 5 --* 6
===> 11

The comment is introduced by -- followed by a non-symbol (because if followed by a symbol, it might be an operator)

Hope this helps!

Dan

On Fri, Dec 11, 2009 at 11:30 PM, michael rice <[email protected]> wrote:
I'm just noticing that "--" comments don't seem to work properly when the first character following them is a '*'.

Michael


--*I like asterisks
--*I like asterisks
--*I like asterisks
--*I like asterisks

double x = x+x


Prelude> :l double
[1 of 1] Compiling MainÂÂÂÂÂÂÂÂÂÂÂÂ ( double.hs, interpreted )

double.hs:1:0: parse error on input `--*'
Failed, modules loaded: none.
Prelude>



_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
<Prev in Thread] Current Thread [Next in Thread>