diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2021-11-26 20:28:07 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-11-29 11:03:19 -0500 |
commit | 7ea665bfed7c9915038d8ea6cb820479970a10fa (patch) | |
tree | 273c914bedb77aad5da17a26115aab56ad85e590 /compiler/GHC/Iface/Ext/Ast.hs | |
parent | 1dc0d7af974cbd88a7aa70ba61fc0d7369a20433 (diff) | |
download | haskell-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.hs | 2 |
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 _ -> [] |