diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2011-06-30 17:45:00 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2011-06-30 17:45:00 +0100 |
commit | 83cacd522a78cd7a19359b3df3e160cb44e2ca3f (patch) | |
tree | 1e28b42af306a23fbf1ea07f6351938cc7077a09 /compiler/codeGen | |
parent | bfbf3858110b1e16b2efd89f691e426b03e52343 (diff) | |
download | haskell-83cacd522a78cd7a19359b3df3e160cb44e2ca3f.tar.gz |
Fix Trac #5286: getPredTyDescription
Diffstat (limited to 'compiler/codeGen')
-rw-r--r-- | compiler/codeGen/ClosureInfo.lhs | 2 | ||||
-rw-r--r-- | compiler/codeGen/StgCmmClosure.hs | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/compiler/codeGen/ClosureInfo.lhs b/compiler/codeGen/ClosureInfo.lhs index d2c63b3be3..4f59d95276 100644 --- a/compiler/codeGen/ClosureInfo.lhs +++ b/compiler/codeGen/ClosureInfo.lhs @@ -1052,5 +1052,5 @@ getTyDescription ty getPredTyDescription :: PredType -> String getPredTyDescription (ClassP cl _) = getOccString cl getPredTyDescription (IParam ip _) = getOccString (ipNameName ip) -getPredTyDescription (EqPred _ _) = panic "getPredTyDescription EqPred" +getPredTyDescription (EqPred _ _) = "Type equality" \end{code} diff --git a/compiler/codeGen/StgCmmClosure.hs b/compiler/codeGen/StgCmmClosure.hs index d6177438a4..a8d91f58d6 100644 --- a/compiler/codeGen/StgCmmClosure.hs +++ b/compiler/codeGen/StgCmmClosure.hs @@ -1086,10 +1086,9 @@ getTyDescription ty fun_result other = getTyDescription other getPredTyDescription :: PredType -> String -getPredTyDescription (ClassP cl _) = getOccString cl -getPredTyDescription (IParam ip _) = getOccString (ipNameName ip) -getPredTyDescription (EqPred ty1 _ty2) = getTyDescription ty1 -- Urk? - +getPredTyDescription (ClassP cl _) = getOccString cl +getPredTyDescription (IParam ip _) = getOccString (ipNameName ip) +getPredTyDescription (EqPred {}) = "Type equality" -------------------------------------- -- SRTs/CAFs |