GHCi internal error with runQ [| it |] and _
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>
Trac metadata
Trac field | Value |
---|---|
Version | 8.4.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |