[project @ 2001-01-31 15:38:02 by sewardj]
authorsewardj <unknown>
Wed, 31 Jan 2001 15:38:02 +0000 (15:38 +0000)
committersewardj <unknown>
Wed, 31 Jan 2001 15:38:02 +0000 (15:38 +0000)
Give a clause for hPutFS on UnicodeStr.  Apparently only needed so that
-ddump-stix doesn't bomb when printing unicode strings.

ghc/compiler/utils/FastString.lhs

index 007f5ac..eebb53a 100644 (file)
@@ -674,5 +674,10 @@ hPutFS handle (CharStr a# l#)
   | otherwise  = hPutBufFull handle (Ptr a#) (I# l#)
 #endif
 
+-- ONLY here for debugging the NCG (so -ddump-stix works for string
+-- literals); no idea if this is really necessary.  JRS, 010131
+hPutFS handle (UnicodeStr _ is) 
+  = hPutStr handle ("(UnicodeStr " ++ show is ++ ")")
+
 #endif
 \end{code}