
11 Oct
2008
11 Oct
'08
7:54 p.m.
On Thu, Oct 9, 2008 at 3:05 PM, Mitchell, Neil
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