[GHC] #8119: better type inference for lambdas

GHC ghc-devs at haskell.org
Fri Oct 18 23:37:40 UTC 2013


#8119: better type inference for lambdas
-----------------------------------------------+---------------------------
        Reporter:  dmwit                       |            Owner:
            Type:  feature request             |           Status:  closed
        Priority:  normal                      |        Milestone:
       Component:  Compiler (Type checker)     |          Version:  7.6.3
      Resolution:  fixed                       |         Keywords:
Operating System:  Unknown/Multiple            |     Architecture:
 Type of failure:  None/Unknown                |  Unknown/Multiple
       Test Case:  typecheck/should_run/T8119  |       Difficulty:  Unknown
        Blocking:                              |       Blocked By:
                                               |  Related Tickets:
-----------------------------------------------+---------------------------
Changes (by monoidal):

 * status:  new => closed
 * testcase:   => typecheck/should_run/T8119
 * resolution:   => fixed


Comment:

 It's good in HEAD, which gives `Int -> Int` in both cases. I can't point
 which commit did it, but I added a regression test. As a clumsy
 workaround, you can write `let y = \x -> test x; :t y` in 7.6.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8119#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list