#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           
------------------------+---------------------------------------------------
 Hi,

 When creating a file with the following two definitions:

 {{{
 rowtotals xs = map sum xs
 rowtotals'   = map sum
 }}}

 And loading this file in GHCi. Asking for the type of the two definitions
 gives:

 {{{
 *Main> :t rowtotals
 rowtotals :: Num b => [[b]] -> [b]
 *Main> :t rowtotals'
 rowtotals' :: [[Integer]] -> [Integer]
 }}}

 Is this the expected behaviour? I would expect both to have the same
 polymorphic type.

 Cheers, Christiaan

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5483>
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

Reply via email to