Hi All, With the previous release of hugs (hugs98 - Feb 2000) I could export 0ary data constructor functions. E.g data SplitOpt = EDGE_SPLIT | SIMP_GRAPH deriving (Eq) and I could export EDGE_SPLIT and SIMP_GRAPH. But with latest release (hugs98 - Nov 2002) I get error message which essentially means I cannot export EDGE_SPLIT or SIMP_GRAPH. How to overcome this? Regards, -- Arun Kumar S Jadhav Masters Student, SIC-309, KReSIT, IIT-Bombay, India Ph: +91-22-25764967 http://www.it.iitb.ac.in/~arunk ***************************** Never negotiate out of fear Never fear to negotiate *****************************
On Mon, Jul 07, 2003 at 01:56:22PM +0530, Arun Kumar S Jadhav wrote:
With the previous release of hugs (hugs98 - Feb 2000) I could export 0ary data constructor functions. E.g data SplitOpt = EDGE_SPLIT | SIMP_GRAPH deriving (Eq) and I could export EDGE_SPLIT and SIMP_GRAPH. But with latest release (hugs98 - Nov 2002) I get error message which essentially means I cannot export EDGE_SPLIT or SIMP_GRAPH. How to overcome this?
The old behaviour was a bug -- Haskell 98 doesn't permit exporting constructors by themselves. You can export SplitOpt(EDGE_SPLIT) but not EDGE_SPLIT without SplitOpt.
participants (2)
-
Arun Kumar S Jadhav -
Ross Paterson