Prelude and (:) and ((:), ) bugs?
Fri, 21 Sep 2001 01:22:31 -0700
It's hard to distinguish a constructor from a class in an
| -----Original Message-----
| From: Alastair David Reid [mailto:email@example.com]=20
| Sent: 20 September 2001 19:38
| To: Simon Marlow
| Cc: Ian Lynagh; firstname.lastname@example.org; email@example.com
| Subject: Re: Prelude and (:) and ((:), ) bugs?
| > Ah, I forgot that you can't export a constructor on its own.
| You can't?
| I probably knew this once but looking at it now, it seems=20
| kinda surprising. Haskell's module system is supposed to be=20
| just namespace control --nothing more-- so why is it=20
| preventing me from doing something which is perfectly safe=20
| and well-defined?
| I'll readily agree that there's no strong motivation for=20
| exporting a constructor on its own (I think the only reason=20
| Hugs allows it is just so we can export (:) from the Prelude)=20
| but what is the motivation for disallowing it?
| Alastair Reid firstname.lastname@example.org =20
| Hugs-Bugs mailing list