[Haskell-cafe] Numeric literals
Roel van Dijk
vandijk.roel at gmail.com
Fri Mar 20 09:26:37 EDT 2009
On Fri, Mar 20, 2009 at 10:06 AM, Lauri Oksanen <lassoken at gmail.com> 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
More information about the Haskell-Cafe
mailing list