[GHC] #11592: Self-kinded type varialbe accepted
#11592: Self-kinded type varialbe accepted -------------------------------------+------------------------------------- Reporter: simonpj | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 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: -------------------------------------+------------------------------------- Found when chasing #11407 {{{ data T (a::a) = Blah -- Accepted data S (b :: a) a = ... -- Rejected with: variable ‘a’ used as a kind variable before being bound -- as a type variable. Perhaps reorder your variables? }}} But `T` should be rejected too, for the same reason as `S` -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11592> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11592: Self-kinded type variable accepted -------------------------------------+------------------------------------- Reporter: simonpj | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: TypeInType 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 simonpj): * keywords: => TypeInType -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11592#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11592: Self-kinded type variable accepted -------------------------------------+------------------------------------- Reporter: simonpj | Owner: johnleo Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: TypeInType 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 johnleo): * owner: => johnleo -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11592#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11592: Self-kinded type variable accepted -------------------------------------+------------------------------------- Reporter: simonpj | Owner: johnleo Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D2914 Wiki Page: | -------------------------------------+------------------------------------- Changes (by johnleo): * differential: => D2914 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11592#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11592: Self-kinded type variable accepted -------------------------------------+------------------------------------- Reporter: simonpj | Owner: johnleo Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2914 Wiki Page: | -------------------------------------+------------------------------------- Changes (by johnleo): * differential: D2914 => Phab:D2914 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11592#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11592: Self-kinded type variable accepted -------------------------------------+------------------------------------- Reporter: simonpj | Owner: johnleo Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2914 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"8a76d32e4fbdafe787a0f5b2a492c0d0ea1ed980/ghc" 8a76d32e/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="8a76d32e4fbdafe787a0f5b2a492c0d0ea1ed980" Check that type variable does not reference itself in its kind signature This fixes #11592. Test Plan: validate Reviewers: simonpj, austin, bgamari, goldfire Reviewed By: goldfire Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2914 GHC Trac Issues: #11592 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11592#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11592: Self-kinded type variable accepted -------------------------------------+------------------------------------- Reporter: simonpj | Owner: johnleo Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 7.10.3 Resolution: fixed | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2914 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed * milestone: => 8.2.1 Comment: Thanks John! -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11592#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC