On Fri, Mar 20, 2009 at 10:06 AM, Lauri Oksanen <[email protected]> wrote: > 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 _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
