Commit cbd8214e authored by simonmar's avatar simonmar
Browse files

[project @ 2001-08-21 08:59:41 by simonmar]

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).
parent cda6de55
......@@ -475,7 +475,8 @@ tyConPrimRep tc = ASSERT( not (isUnboxedTupleTyCon tc) )
tyConTheta :: TyCon -> [PredType]
tyConTheta (AlgTyCon {algTyConTheta = theta}) = theta
-- should ask about anything else
tyConTheta (TupleTyCon {}) = []
-- shouldn't ask about anything else
@tyConArgVrcs_maybe@ gives a list of (occPos,occNeg) flags, one for
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment