illegal export of lone data constructor

"Andrew Frank" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
i am moving fom the nov 99 to the nov 02 hugs.exe (under windows)
when recompiling old files i find two problems which i do not understand:

i want to export (:) from the prelude because i do not use the standard
prelude usually.

module XX ( (:), ....)
does not work (it did before). now i get the error "illegal export of lone
data constructor"
i do not see any hint in the report (nov 99) that (:) cannot be exported.
(it may be unusual, but not illegal?)

the goal is to export certain functions from the prelude (especially (:),
which cannot be redefined) but not all of it. how can this be achieved?

(minor point:
my report says that the prelude module is always available as qualified
import (p. 71)
the hugs now (2002) seem to require an explicite import qualified (after a
import Prelude hiding (stuff))

)
i would appreciate an answer on the first question (export of (:))

andrew


Andrew U. Frank
Geoinformation E127     	       	       		phone: +43 1 588 01 12710
TU Vienna					secr.  +43 1 588 01 12700
Gusshausstrasse 27-29 			fax    +43 1 588 01 12799
A-1040 Vienna Austria        			cellular phone +43 676 41925 72
http://www.geoinfo.tuwien.ac.at/persons/frank/frank.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.