summaryrefslogtreecommitdiff
path: root/compiler/hieFile
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2019-01-09 14:52:30 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2019-01-11 03:45:33 -0500
commitc2455e647501c5a382861196b64df3dd05b620a2 (patch)
tree60b56e73488fc237acf76d3f40e782830a6ecf56 /compiler/hieFile
parent82d1a88dec216d761b17252ede760da5c566007f (diff)
downloadhaskell-c2455e647501c5a382861196b64df3dd05b620a2.tar.gz
Run typed splices in the zonker
Summary: This fixes #15471 In the typechecker we check that the splice has the right type but we crucially don't zonk the generated expression. This is because we might end up unifying type variables from outer scopes later on. Reviewers: simonpj, goldfire, bgamari Subscribers: rwbarton, carter GHC Trac Issues: #15471 Differential Revision: https://phabricator.haskell.org/D5286
Diffstat (limited to 'compiler/hieFile')
-rw-r--r--compiler/hieFile/HieAst.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/hieFile/HieAst.hs b/compiler/hieFile/HieAst.hs
index eafafbbde9..432dc36069 100644
--- a/compiler/hieFile/HieAst.hs
+++ b/compiler/hieFile/HieAst.hs
@@ -1504,6 +1504,8 @@ instance ( ToHie (LHsExpr a)
]
HsSpliced _ _ _ ->
[]
+ HsSplicedT _ ->
+ []
XSplice _ -> []
instance ToHie (LRoleAnnotDecl GhcRn) where