summaryrefslogtreecommitdiff
path: root/compiler/iface
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-02-06 08:40:44 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2012-02-06 08:40:44 +0000
commitaf26d558fb57150a0035cc72d15f829975db2e9f (patch)
tree5aee3211c1950629467457aa803c633d86cdfd90 /compiler/iface
parentf92591defcb5c4803c301558d51e3f8c9c92a985 (diff)
downloadhaskell-af26d558fb57150a0035cc72d15f829975db2e9f.tar.gz
Give promoted DataCons a tyConArity and promoted TyCons a tyConKind
..and fix up Core Lint. (I was getting a bogus Core Lint failure.)
Diffstat (limited to 'compiler/iface')
-rw-r--r--compiler/iface/BuildTyCl.lhs8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/iface/BuildTyCl.lhs b/compiler/iface/BuildTyCl.lhs
index 1ffabb4f73..75b8d91881 100644
--- a/compiler/iface/BuildTyCl.lhs
+++ b/compiler/iface/BuildTyCl.lhs
@@ -15,7 +15,6 @@ module BuildTyCl (
buildSynTyCon,
buildAlgTyCon,
buildDataCon,
- buildPromotedDataTyCon,
TcMethInfo, buildClass,
distinctAbstractTyConRhs, totallyAbstractTyConRhs,
mkNewTyConRhs, mkDataTyConRhs,
@@ -35,13 +34,11 @@ import MkId
import Class
import TyCon
import Type
-import Kind ( promoteType, isPromotableType )
import Coercion
import TcRnMonad
import Util ( isSingleton )
import Outputable
-import Unique ( getUnique )
\end{code}
@@ -184,11 +181,6 @@ mkDataConStupidTheta tycon arg_tys univ_tvs
arg_tyvars = tyVarsOfTypes arg_tys
in_arg_tys pred = not $ isEmptyVarSet $
tyVarsOfType pred `intersectVarSet` arg_tyvars
-
-buildPromotedDataTyCon :: DataCon -> TyCon
-buildPromotedDataTyCon dc = ASSERT ( isPromotableType ty )
- mkPromotedDataTyCon dc (getName dc) (getUnique dc) (promoteType ty)
- where ty = dataConUserType dc
\end{code}