
15 Dec
2010
15 Dec
'10
9:37 p.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