#5483: Eta-reduced term has wrongly inferred monomorphic type
------------------------+---------------------------------------------------
Reporter: darchon | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (Type checker)
Version: 7.2.1 | Keywords:
Testcase: | Blockedby:
Os: MacOS X | Blocking:
Architecture: x86 | Failure: None/Unknown
------------------------+---------------------------------------------------
Comment(by darchon):
It seems adding:
{{{
{-# LANGUAGE NoMonomorphismRestriction #-}
}}}
Will give both definitions the same inferred polymorphic type. But that
still doesn't explain why 'Integer' was inferred out of all possible
instances of 'Num'.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5483#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs