Oh, I see... Thank you, it works now with NoMonomorphismRestriction. The error message is extremely misleading though... And so is the type signature inferred by the compiler.
it's a Monomorphism Restriction of Haskell'98, disabled with -XNoMonomorphismRestriction