Am 17.10.2011 11:10, schrieb Ertugrul Soeylemez:
So please, please, please, if you decide to use a newtype, do /not/ hide the constructor.
The better alternative to "not hiding the constructor" is to supply conversion functions that may or may not do more than the constructor and selector and are named accordingly. (This just disallows pattern matching.)
Cheers Christian
Greets, Ertugrul
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe