On Thu, Oct 9, 2008 at 3:05 PM, Mitchell, Neil
<[EMAIL PROTECTED]> wrote:
> Hi Iain,
>
> The wiki page has quite a nice article:
> http://www.haskell.org/haskellwiki/Smart_constructors

Smart constructors are nice but if your module doesn't also export the
regular constructor then you can't pattern match against it.

It would be cool if there was a way to export constructors from a
module, but only for use in pattern matching and not constructing new
values.

Peace,
Bit
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to