
14 Aug
2013
14 Aug
'13
6:24 a.m.
2013/8/14 Lukas Lehner
That I understand. My question is that I have to enforce the type that specific way (don't want to use ExtendedDefaultRules) or is there some more generic way?
Ah, sorry, I don't know of a more generic way. But I'm not experienced enough to be sure. My experience is than in real world code, most of the time, the way you use the values gives enough info for ghc to infer a type. Sometimes, you can avoid adding type information by using aTypeOf from the Prelude. David.