From d1bd2b665265989a5d2ecfe54451cc66e120f302 Mon Sep 17 00:00:00 2001 From: sewardj Date: Wed, 31 Jan 2001 15:38:02 +0000 Subject: [PATCH] [project @ 2001-01-31 15:38:02 by sewardj] 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghc/compiler/utils/FastString.lhs b/ghc/compiler/utils/FastString.lhs index 007f5ac..eebb53a 100644 --- a/ghc/compiler/utils/FastString.lhs +++ b/ghc/compiler/utils/FastString.lhs @@ -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} -- 1.7.10.4