[Haskell-cafe] numeric coercion in ghci vs hugs

Doug McIlroy doug at cs.dartmouth.edu
Mon Jan 9 06:01:25 CET 2012

After loading the one-line file
        default (Integer,Rational,Double)
the input
        1::Fractional t => t
in ghci yields the output
and in hugs
The ghci answer appears not to respect the default
declaration.  What's going on?

Doug McIlroy

More information about the Haskell-Cafe mailing list