Prelude and (:) and []((:), []) bugs?

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
21 Sep 2001 16:44:02 GMT


Thu, 20 Sep 2001 13:32:54 +0100, Simon Marlow <simonmar@microsoft.com> pisze:

> (:) is allowed in an export list; it is just a normal operator.

Not quite, it's a reservedop. "Notice that a colon by itself, ":",
is reserved solely for use as the Haskell list constructor; this
makes its treatment uniform with other parts of the list syntax,
such as "[]" and "[a,b]"." (Haskell 98)

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK