16 Dec
2010
16 Dec
'10
5:37 a.m.
Hello Haskellers, I defined newtype Banana = Banana Something When I work with it, I sometimes use a function mapBanana f (Banana b) = Banana (f b) which is of course discarded by the compiler. Is this usual practice or are there any better solutions? Regards Tim