On Mon, 16 Jul 2012, Felipe Almeida Lessa wrote:
On Mon, Jul 16, 2012 at 12:33 PM, Vo Minh Thu not...@gmail.com wrote:
It seems like the infered type (and thus bounds) is different when you
force the result to be a Color or not. Just give explicit type
signatures and conversion functions.
Oh the mailing list was haskell@ instead of café. Sorry. (Now cc'ing café.)
Andreas, please post this kind of mail to the haskell-cafe instead of
the haskell mailing list.
2012/7/16 Vo Minh Thu not...@gmail.com:
It seems like the infered type (and thus bounds) is different when you
force the
I'd guess that type-inference is allowing rgbliste to use Integers
when farbliste is commented out, but restricting it to 16 Bit types
when it is uncommented. I don't have the GTK module installed on this
machine, but try adding some type annotations to see if this is the
case.
The maxBound of