[GHC] #15433: Internal error with PartialTypeSignatures and TH

#15433: Internal error with PartialTypeSignatures and TH -------------------------------------+------------------------------------- Reporter: monoidal | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.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: -------------------------------------+------------------------------------- File: {{{ {-# LANGUAGE TemplateHaskell #-} type T = $([t| _ |]) }}} gives a bad error message in 8.4 and HEAD: {{{ • GHC internal error: ‘_’ is not in scope during type checking, but it passed the renamer tcl_env of environment: [r1sn :-> ATcTyCon T :: k0] • In the type ‘(_)’ In the type declaration for ‘T’ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15433 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15433: Internal error with PartialTypeSignatures and TH -------------------------------------+------------------------------------- Reporter: monoidal | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Template Haskell | Version: 8.4.3 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): * component: Compiler => Template Haskell -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15433#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15433: Internal error with PartialTypeSignatures and TH -------------------------------------+------------------------------------- Reporter: monoidal | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Template Haskell | Version: 8.4.3 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 RyanGlScott): Indeed, the renamer normally catches things like `type T = _`, so the typechecker never has a chance to get its claws on it. This same phenomenon can also be observed in other places where wildcards are disallowed (for example, `instance C (Maybe $([t| _ |]))` also gives the same internal error). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15433#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15433: Internal error with PartialTypeSignatures and TH -------------------------------------+------------------------------------- Reporter: monoidal | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Template Haskell | Version: 8.4.3 Resolution: | Keywords: | PartialTypeSignatures 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: => PartialTypeSignatures -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15433#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC