add default cases
authorSimon Marlow <simonmar@microsoft.com>
Tue, 4 Jul 2006 13:54:44 +0000 (13:54 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 4 Jul 2006 13:54:44 +0000 (13:54 +0000)
compiler/main/HscTypes.lhs

index 0ac5790..e67de3b 100644 (file)
@@ -1077,8 +1077,10 @@ isInterpretable = not . isObject
 nameOfObject (DotO fn)   = fn
 nameOfObject (DotA fn)   = fn
 nameOfObject (DotDLL fn) = fn
+nameOfObject other       = pprPanic "nameOfObject" (ppr other)
 
 byteCodeOfObject (BCOs bc) = bc
+byteCodeOfObject other     = pprPanic "byteCodeOfObject" (ppr other)
 \end{code}