summaryrefslogtreecommitdiff
path: root/compiler/GHC/Iface/Ext/Ast.hs
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2021-11-26 20:28:07 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-11-29 11:03:19 -0500
commit7ea665bfed7c9915038d8ea6cb820479970a10fa (patch)
tree273c914bedb77aad5da17a26115aab56ad85e590 /compiler/GHC/Iface/Ext/Ast.hs
parent1dc0d7af974cbd88a7aa70ba61fc0d7369a20433 (diff)
downloadhaskell-7ea665bfed7c9915038d8ea6cb820479970a10fa.tar.gz
TTG: replace Void/NoExtCon with DataConCantHappen
There were two ways to indicate that a TTG constructor is unused in a phase: `NoExtCon` and `Void`. This unifies the code, and uses the name 'DataConCantHappen', following the discussion at MR 7041. Updates haddock submodule
Diffstat (limited to 'compiler/GHC/Iface/Ext/Ast.hs')
-rw-r--r--compiler/GHC/Iface/Ext/Ast.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Iface/Ext/Ast.hs b/compiler/GHC/Iface/Ext/Ast.hs
index 9c71235a98..0c74db385d 100644
--- a/compiler/GHC/Iface/Ext/Ast.hs
+++ b/compiler/GHC/Iface/Ext/Ast.hs
@@ -1890,7 +1890,7 @@ instance HiePass p => ToHie (LocatedA (HsSplice (GhcPass p))) where
[]
XSplice x -> case hiePass @p of
#if __GLASGOW_HASKELL__ < 811
- HieRn -> noExtCon x
+ HieRn -> dataConCantHappen x
#endif
HieTc -> case x of
HsSplicedT _ -> []