This is a known hugs bug. x should be monomorphic, allowing the usage in main to constrain it to Fractional. Instead, it is generalized and then defaulted to Int without being influenced by main. So ghc is right and hugs is wrong on this one. I expect this will be fixed eventually. John
- Fractional and Int? Bjarte Mayanja Oestvold
- John C. Peterson
