[Haskell] Re: Parsing bug in GHC 6.4.1 ?

Peter Simons simons at cryp.to
Sun Jan 8 10:37:47 EST 2006

Bruno Oliveira writes:

 >> class Foo o where
 >>   (:+) :: o -> o -> o

The Haskell report specifies in section "2.4 Identifiers and

  An operator symbol starting with a colon is a constructor.

Think of ':' as a character that is interpreted as "uppercase";
you can't use it to start a function or variable name.


More information about the Haskell mailing list