[project @ 2001-06-28 15:11:07 by simonpj]
authorsimonpj <unknown>
Thu, 28 Jun 2001 15:11:07 +0000 (15:11 +0000)
committersimonpj <unknown>
Thu, 28 Jun 2001 15:11:07 +0000 (15:11 +0000)
Fix a missing case in kcHsType.

[Could be merged into 5.00.3, but we probably
 aren't going to have such a thind.]

ghc/compiler/hsSyn/HsTypes.lhs
ghc/compiler/typecheck/TcMonoType.lhs

index f5156ae..959bcd7 100644 (file)
@@ -75,6 +75,7 @@ data HsType name
   -- Generics
   | HsOpTy             (HsType name) name (HsType name)
   | HsNumTy             Integer
+
   -- these next two are only used in interfaces
   | HsPredTy           (HsPred name)
   
index bb404c0..7a7086b 100644 (file)
@@ -212,6 +212,9 @@ kcHsType (HsFunTy ty1 ty2)
     kcTypeType ty2     `thenTc_`
     returnTc liftedTypeKind
 
+kcHsType (HsNumTy _)           -- The unit type for generics
+  = returnTc liftedTypeKind
+
 kcHsType ty@(HsOpTy ty1 op ty2)
   = kcTyVar op                         `thenTc` \ op_kind ->
     kcHsType ty1                       `thenTc` \ ty1_kind ->