[project @ 2001-05-14 10:20:58 by sewardj]
authorsewardj <unknown>
Mon, 14 May 2001 10:20:58 +0000 (10:20 +0000)
committersewardj <unknown>
Mon, 14 May 2001 10:20:58 +0000 (10:20 +0000)
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

index 39a54a4..3ed33a6 100644 (file)
@@ -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}