[Haskell-beginners] Exporting constructors
daniel.is.fischer at googlemail.com
Thu Mar 24 13:36:43 CET 2011
On Thursday 24 March 2011 13:17:16, Patrick LeBoutillier wrote:
> Hi all,
> Is it possible to export constructors from a module in a way that they
> can be used for pattern matching but not for creating types?
No, that's impossible (as far as I know). If a constructor is exported,
it's available for construction as well as for pattern matching.
More information about the Beginners