projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d165287
)
[project @ 2003-10-30 09:38:14 by simonpj]
author
simonpj
<unknown>
Thu, 30 Oct 2003 09:38:14 +0000
(09:38 +0000)
committer
simonpj
<unknown>
Thu, 30 Oct 2003 09:38:14 +0000
(09:38 +0000)
Improve panic msg
ghc/compiler/hsSyn/Convert.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/hsSyn/Convert.lhs
b/ghc/compiler/hsSyn/Convert.lhs
index
89cd398
..
ac17dbb
100644
(file)
--- a/
ghc/compiler/hsSyn/Convert.lhs
+++ b/
ghc/compiler/hsSyn/Convert.lhs
@@
-302,7
+302,7
@@
cvt_context tys = map cvt_pred tys
cvt_pred :: Meta.Type -> HsPred RdrName
cvt_pred ty = case split_ty_app ty of
(ConT tc, tys) -> HsClassP (tconName tc) (map cvtType tys)
cvt_pred :: Meta.Type -> HsPred RdrName
cvt_pred ty = case split_ty_app ty of
(ConT tc, tys) -> HsClassP (tconName tc) (map cvtType tys)
- other -> panic "Malformed predicate"
+ other -> pprPanic "Malformed predicate" (ppr ty)
cvtType :: Meta.Type -> HsType RdrName
cvtType ty = trans (root ty [])
cvtType :: Meta.Type -> HsType RdrName
cvtType ty = trans (root ty [])