[GHC] #13781: (a :: (k :: Type)) is too exotic for Template Haskell
#13781: (a :: (k :: Type)) is too exotic for Template Haskell -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Template | Version: 8.0.1 Haskell | Keywords: TypeInType | Operating System: Unknown/Multiple Architecture: | Type of failure: GHC rejects Unknown/Multiple | valid program Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- On GHC 8.0.1 or later, GHC will choke on this code: {{{#!hs {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeInType #-} module Bug where import Data.Kind import Data.Proxy $([d| f :: Proxy (a :: (k :: Type)) f = Proxy |]) }}} {{{ GHCi, version 8.2.0.20170522: http://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from /home/rgscott/.ghci [1 of 1] Compiling Bug ( Bug.hs, interpreted ) Bug.hs:8:3: error: Exotic form of kind not (yet) handled by Template Haskell (k :: Type) | 8 | $([d| f :: Proxy (a :: (k :: Type)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... }}} I don't think this would be too hard to support, though. I'll take a shot at fixing this. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13781> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13781: (a :: (k :: Type)) is too exotic for Template Haskell -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: RyanGlScott Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * owner: (none) => RyanGlScott -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13781#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13781: (a :: (k :: Type)) is too exotic for Template Haskell -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: RyanGlScott Type: bug | Status: patch Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3627 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => patch * differential: => Phab:D3627 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13781#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13781: (a :: (k :: Type)) is too exotic for Template Haskell -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: RyanGlScott Type: bug | Status: patch Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3627 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"9a3ca8deb43626c2aee10eddc029880cd2c4b4da/ghc" 9a3ca8de/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="9a3ca8deb43626c2aee10eddc029880cd2c4b4da" Support signatures at the kind level in Template Haskell `repNonArrowKind` was missing a case for `HsKindSig`, which this commit adds. Fixes #13781. Test Plan: make test TEST=T13781 Reviewers: goldfire, austin, bgamari Reviewed By: goldfire Subscribers: rwbarton, thomie GHC Trac Issues: #13781 Differential Revision: https://phabricator.haskell.org/D3627 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13781#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13781: (a :: (k :: Type)) is too exotic for Template Haskell -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: RyanGlScott Type: bug | Status: closed Priority: normal | Milestone: 8.4.1 Component: Template Haskell | Version: 8.0.1 Resolution: fixed | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3627 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed * milestone: => 8.4.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13781#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13781: (a :: (k :: Type)) is too exotic for Template Haskell -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: RyanGlScott Type: bug | Status: closed Priority: normal | Milestone: 8.4.1 Component: Template Haskell | Version: 8.0.1 Resolution: fixed | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: T13781 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3627 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * testcase: => T13781 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13781#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC