[Haskell-beginners] print []

David Virebayre dav.vire+haskell at gmail.com
Wed Aug 14 12:24:29 CEST 2013


2013/8/14 Lukas Lehner <lehner.lukas at gmail.com>:
> 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.




More information about the Beginners mailing list