diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-10-07 14:06:14 +0200 |
---|---|---|
committer | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-10-08 17:44:03 +0200 |
commit | c47e5baf14990612be5182ba8f16b74313a47895 (patch) | |
tree | 1b1e7f2fe50a1900df5654a7b9a69b1fa104b974 /compiler/GHC/Core/Predicate.hs | |
parent | 18a3ddf75d25094096a7fe44fd250de973041187 (diff) | |
download | haskell-wip/andreask/tyConEnv.tar.gz |
Add TyCon Set/Env and use them in a few places.wip/andreask/tyConEnv
Firstly this improves code clarity.
But it also has performance benefits as we no longer
go through the name of the TyCon to get at it's unique.
In order to make this work the recursion check for TyCon
has been moved into it's own module in order to avoid import
cycles.
Diffstat (limited to 'compiler/GHC/Core/Predicate.hs')
-rw-r--r-- | compiler/GHC/Core/Predicate.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/GHC/Core/Predicate.hs b/compiler/GHC/Core/Predicate.hs index 89dc9a9e71..a19f129161 100644 --- a/compiler/GHC/Core/Predicate.hs +++ b/compiler/GHC/Core/Predicate.hs @@ -34,6 +34,7 @@ import GHC.Prelude import GHC.Core.Type import GHC.Core.Class import GHC.Core.TyCon +import GHC.Core.TyCon.RecWalk import GHC.Types.Var import GHC.Core.Coercion import GHC.Core.Multiplicity ( scaledThing ) |