From 3bf432001c0cc62ffb7c08c68568af15ba4db624 Mon Sep 17 00:00:00 2001 From: sewardj Date: Mon, 14 May 2001 10:20:58 +0000 Subject: [PATCH] [project @ 2001-05-14 10:20:58 by sewardj] Change wording of panic message on encountering unboxed tuples to: Bytecode generator can't handle unboxed tuples. Possibly due to foreign import/export decls in source. Workaround: compile this module to a .o file, then restart session. --- ghc/compiler/ghci/ByteCodeGen.lhs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/ghci/ByteCodeGen.lhs b/ghc/compiler/ghci/ByteCodeGen.lhs index 39a54a4..3ed33a6 100644 --- a/ghc/compiler/ghci/ByteCodeGen.lhs +++ b/ghc/compiler/ghci/ByteCodeGen.lhs @@ -956,7 +956,11 @@ untaggedIdSizeW = untaggedSizeW . typePrimRep . idType unboxedTupleException :: a unboxedTupleException - = throwDyn (Panic "bytecode generator can't handle unboxed tuples") + = throwDyn + (Panic + ("Bytecode generator can't handle unboxed tuples. Possibly due\n" ++ + "\tto foreign import/export decls in source. Workaround:\n" ++ + "\tcompile this module to a .o file, then restart session.")) \end{code} -- 1.7.10.4