[GHC] #15511: GHCi internal error with runQ [| it |] and _
GHC
ghc-devs at haskell.org
Mon Aug 13 03:01:09 UTC 2018
#15511: GHCi internal error with runQ [| it |] and _
-------------------------------------+-------------------------------------
Reporter: ChaiTRex | 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:
-------------------------------------+-------------------------------------
GHCi gives a GHC internal error with the following input:
{{{
:set -XTemplateHaskell
:m + Language.Haskell.TH.Syntax
runQ [| it |]
runQ [| it |]
_
}}}
Session:
{{{
$ ghci
GHCi, version 8.4.3: http://www.haskell.org/ghc/ :? for help
Prelude> :set -XTemplateHaskell
Prelude> :m + Language.Haskell.TH.Syntax
Prelude Language.Haskell.TH.Syntax> runQ [| it |]
UnboundVarE it
Prelude Language.Haskell.TH.Syntax> runQ [| it |]
VarE Ghci1.it
Prelude Language.Haskell.TH.Syntax> _
<interactive>:1:1: error:
GHC internal error: ‘Ghci1.it’ is not in scope during type checking,
but it passed the renamer
tcl_env of environment: []
Prelude Language.Haskell.TH.Syntax>
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15511>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list