
20 Mar
2009
20 Mar
'09
9:26 a.m.
On Fri, Mar 20, 2009 at 10:06 AM, Lauri Oksanen
Hi,
Is there some way to tell ghc, how to interpret numeric literals? I would like it to interpret 1 as 1 :: Integer not 1 as fromInteger (1 :: Integer)
Check out this section from the haskell language report: http://www.haskell.org/onlinereport/decls.html#default-decls
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.
Perhaps turning off all defaults will solve your problem? Regards, Roel