[GHC] #11797: Template Haskell does not quantify over extra vars in class methods
#11797: Template Haskell does not quantify over extra vars in class methods -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template | Version: 8.1 Haskell | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- If I say {{{#!hs [d| class Foo a where meth :: a -> b -> a |] }}} I would expect that the type signature for `meth` would quantify over `b`. It does not. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11797> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11797: Template Haskell does not quantify over extra vars in class methods -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"dd99f2ece1bd139be02beddc6dc672862ee5ae34/ghc" dd99f2ec/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="dd99f2ece1bd139be02beddc6dc672862ee5ae34" Fix #11797. DsMeta curiously omitted quantified tyvars in certain circumstances. This patch means it doesn't. Test case: th/T11797 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11797#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11797: Template Haskell does not quantify over extra vars in class methods -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.1 Component: Template Haskell | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => merge * milestone: => 8.0.1 Comment: This has perhaps unfortunate user-facing consequences, in that kind vars in type signatures now appear in quotes. Specifically `foo :: Proxy (a :: k) -> ()` now gets quantified over `k` and `a` when being quoted. This could cause trouble for someone trying to quote and then splice, who suddenly needs `-XTypeInType` to succeed. The problem is that I don't know how to reliably (and uninvasively) tell the type vars from the kind vars. This patch is needed for `singletons`, but I can work around if it's too late to merge. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11797#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11797: Template Haskell does not quantify over extra vars in class methods -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.1 Component: Template Haskell | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: th/T11797 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * testcase: => th/T11797 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11797#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11797: Template Haskell does not quantify over extra vars in class methods -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Template Haskell | Version: 8.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: th/T11797 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged as 3f7832bc36f6cca42a33ec274fc5e7808af74a38. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11797#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC