Commit 223d65c7 authored by simonpj's avatar simonpj
Browse files

[project @ 2003-10-30 09:38:14 by simonpj]

Improve panic msg
parent d1652879
...@@ -302,7 +302,7 @@ cvt_context tys = map cvt_pred tys ...@@ -302,7 +302,7 @@ cvt_context tys = map cvt_pred tys
cvt_pred :: Meta.Type -> HsPred RdrName cvt_pred :: Meta.Type -> HsPred RdrName
cvt_pred ty = case split_ty_app ty of cvt_pred ty = case split_ty_app ty of
(ConT tc, tys) -> HsClassP (tconName tc) (map cvtType tys) (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 :: Meta.Type -> HsType RdrName
cvtType ty = trans (root ty []) cvtType ty = trans (root ty [])
......
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