On 20 Sep 2006, at 22:21, Ashley Yakeley wrote:
"Only one default declaration is permitted per module, and its effect is limited to that module. If no default declaration is given in a module then it assumed to be: default (Integer, Double) The empty default declaration, default (), turns off all defaults in a module." Switching off default types may introduce error messages about top-level declarations with unbound type variables - for example Ambiguous type variable `t' in the constraint: `Num t' arising from the literal `2' at /tmp/test.hs:3:4 Possible cause: the monomorphism restriction applied to the following: k :: t (bound at /tmp/test.hs:3:0) Probable fix: give these definition(s) an explicit type signature or use -fno-monomorphism-restriction Robert |
_______________________________________________ Haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell
