
#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