summaryrefslogtreecommitdiff
path: root/compiler/coreSyn/CoreUtils.hs
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2019-10-03 23:20:13 +0100
committerRichard Eisenberg <rae@richarde.dev>2019-10-08 12:50:04 +0100
commitbe8d71d07b39f503ba9a7fc66b6735cb1da605c9 (patch)
treef32f4bf55f0a2252cdf3ce716234c4b8e52e5215 /compiler/coreSyn/CoreUtils.hs
parent9402608ea5955c70fee51f8b892d418252846a9b (diff)
downloadhaskell-wip/rae/split-up-modules.tar.gz
Break up TcRnTypes, among other modules.wip/rae/split-up-modules
This introduces three new modules: - basicTypes/Predicate.hs describes predicates, moving this logic out of Type. Predicates don't really exist in Core, and so don't belong in Type. - typecheck/TcOrigin.hs describes the origin of constraints and types. It was easy to remove from other modules and can often be imported instead of other, scarier modules. - typecheck/Constraint.hs describes constraints as used in the solver. It is taken from TcRnTypes. No work other than module splitting is in this patch. This is the first step toward homogeneous equality, which will rely more strongly on predicates. And homogeneous equality is the next step toward a dependently typed core language.
Diffstat (limited to 'compiler/coreSyn/CoreUtils.hs')
-rw-r--r--compiler/coreSyn/CoreUtils.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/coreSyn/CoreUtils.hs b/compiler/coreSyn/CoreUtils.hs
index 95aae22b58..1ca5a6b438 100644
--- a/compiler/coreSyn/CoreUtils.hs
+++ b/compiler/coreSyn/CoreUtils.hs
@@ -77,6 +77,7 @@ import Id
import IdInfo
import PrelNames( absentErrorIdKey )
import Type
+import Predicate
import TyCoRep( TyCoBinder(..), TyBinder )
import Coercion
import TyCon