From: sewardj Date: Mon, 14 May 2001 10:20:58 +0000 (+0000) Subject: [project @ 2001-05-14 10:20:58 by sewardj] X-Git-Tag: Approximately_9120_patches~1959 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=3bf432001c0cc62ffb7c08c68568af15ba4db624;p=ghc-hetmet.git [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. --- 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}