[project @ 1998-03-12 10:26:19 by sof]
authorsof <unknown>
Thu, 12 Mar 1998 10:26:19 +0000 (10:26 +0000)
committersof <unknown>
Thu, 12 Mar 1998 10:26:19 +0000 (10:26 +0000)
Include srcloc in panic msg

ghc/compiler/deSugar/DsCCall.lhs

index eab46af..7e1bc0e 100644 (file)
@@ -156,7 +156,8 @@ unboxArg arg
     )
 
   | otherwise
-  = pprPanic "unboxArg: " (ppr arg_ty)
+  = getSrcLocDs `thenDs` \ l ->
+    pprPanic "unboxArg: " (ppr l <+> ppr arg_ty)
   where
     arg_ty = coreExprType arg