[project @ 2001-08-21 08:59:41 by simonmar]
authorsimonmar <unknown>
Tue, 21 Aug 2001 08:59:41 +0000 (08:59 +0000)
committersimonmar <unknown>
Tue, 21 Aug 2001 08:59:41 +0000 (08:59 +0000)
Add a case so that tyConTheta works for tuples (made this change
earlier but forgot to commit it - it fixes the panic when you do :info
() in GHCi).

ghc/compiler/types/TyCon.lhs

index 17ffb0e..eb77346 100644 (file)
@@ -475,7 +475,8 @@ tyConPrimRep tc                                   = ASSERT( not (isUnboxedTupleTyCon tc) )
 \begin{code}
 tyConTheta :: TyCon -> [PredType]
 tyConTheta (AlgTyCon {algTyConTheta = theta}) = theta
--- should ask about anything else
+tyConTheta (TupleTyCon {}) = []
+-- shouldn't ask about anything else
 \end{code}
 
 @tyConArgVrcs_maybe@ gives a list of (occPos,occNeg) flags, one for