[Haskell-cafe] Re: If wishes were horses... (was: Re: definition of sum)

Daniel Fischer daniel.is.fischer at web.de
Fri Mar 12 06:31:30 EST 2010

Am Freitag 12 März 2010 12:14:06 schrieb Paul R:
> wren> I wish Haskell allowed ! to occur (non-initially) in alphanum_'
> wren> identifiers as well as in symbolic ones. Then we could be more
> wren> consistent about having ! mean strictness
> BTW, does something in haskell syntax prevent '?' from appearing at the
> end of identifiers ?

Yes, http://haskell.org/onlinereport/lexemes.html#sect2

uniSymbol 	 -> 	 any Unicode symbol or punctuation

Punctuation characters are symbols (as far as the lexical syntax is 
concerned), hence can't appear in varids, only in varsyms (operators).

More information about the Haskell-Cafe mailing list