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

Simon Marlow
Thu, 20 Sep 2001 13:32:54 +0100

> As far as I can tell, the report doesn't allow (:) or []((:),=20
> []) in the
> export list, yet the hugs prelude has the first and the GHC=20
> prelude has
> the second. Have I missed something that allows them or is=20
> this a bug in
> the preludes or the report?

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

GHC has a couple of extensions to export lists: we allow gcon instead of
just qcon, and gtycon instead of qtycon.  These are quite natural
extensions, and just reduce the amount of built-in compiler magic needed
to express the Prelude.