[Haskell-cafe] :, infix operator, infix constructor, et cetera
Ian Lynagh
igloo at earth.li
Sun Aug 26 09:13:54 EDT 2007
On Sun, Aug 26, 2007 at 01:35:33PM +0100, Andrew Coppin wrote:
> Isaac Dupree wrote:
> >
> >Except that (for no particularly good reason) ":" is a reserved symbol
>
> Really? That's interesting... AFAIK, according to the Report, it
> shouldn't be.
It is; from http://haskell.org/onlinereport/syntax-iso.html
consym -> (: {symbol | :})<reservedop>
reservedop -> .. | : | :: | = | \ | | | <- | -> | @ | ~ | =>
> I just tested. GHC won't let me, WinHugs will. Hmm...
Sounds like a WinHugs bug if you haven't enabled extensions.
Thanks
Ian
More information about the Haskell-Cafe
mailing list