-- error handling
#if defined(COMPILING_GHC)
, panic, panic#, pprPanic, pprPanic#, pprError, pprTrace
- , assertPanic
+ , assertPanic, assertPprPanic
#endif {- COMPILING_GHC -}
) where
CHK_Ubiq() -- debugging consistency check
IMPORT_1_3(List(zipWith4))
+import Pretty
#else
import List(zipWith4)
assertPanic :: String -> Int -> a
assertPanic file line = panic ("ASSERT failed! file "++file++", line "++show line)
+assertPprPanic :: String -> Int -> Doc -> a
+assertPprPanic file line msg
+ = panic (show (sep [hsep[text "ASSERT failed! file",
+ text file,
+ text "line", int line],
+ msg]))
+
#endif {- COMPILING_GHC -}
\end{code}