[GHC] #9972: t7861 gives unexpected result (deferred type error)
#9972: t7861 gives unexpected result (deferred type error) -------------------------------------+------------------------------------- Reporter: luite | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- I'm not sure why `validate` does not trip on this, but the test case does not look obviously disabled to me, so I thought I'd just report it so at least it doesn't get unnoticed. GHC 7.8: {{{ "Hello" t7861: t7861.hs:11:5: Couldn't match type ‘a’ with ‘[a]’ ‘a’ is a rigid type variable bound by the type signature for f :: A a -> a at t7861.hs:10:6 Expected type: A a -> a Actual type: A a -> [a] Relevant bindings include f :: A a -> a (bound at t7861.hs:11:1) In the expression: doA In an equation for ‘f’: f = doA (deferred type error) }}} On GHC 7.10 the result is (both with and without optimization) {{{ "Hello" "Bad" }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9972> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9972: t7861 gives unexpected result (deferred type error) -------------------------------------+------------------------------------- Reporter: luite | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"678df4c2930c4aef61b083edb0f5c4d8c8914a76/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="678df4c2930c4aef61b083edb0f5c4d8c8914a76" Fix up test for T7861 Fixes Trac #9972 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9972#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9972: t7861 gives unexpected result (deferred type error) -------------------------------------+------------------------------------- Reporter: luite | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * resolution: => fixed Comment: Ah yes, thanks -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9972#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC