Re: [Haskell-cafe] Quickcheck, Arbitrary and Overlapping instances

22 Sep
2011
22 Sep
'11
5:16 a.m.
I think it is one case where you should use newtype instead of type, so that it is not just a simple type synonym, but an actual "other" type. With type, you're just making an alias, but Haskell sees the same type. A newtype wrapper will hide this, at the price of having to define a (unique) constructor... So yes, you'll have to change some code.
4992
Age (days ago)
4992
Last active (days ago)
0 comments
1 participants
participants (1)
-
Valentin Robert