
17 Oct
2011
17 Oct
'11
5:38 a.m.
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