module CStrings(
cSEP, pp_cSEP,
- stringToC, charToC,
+ stringToC, charToC, pprFSInCStyle,
charToEasyHaskell
) where
stringToC :: String -> String
charToC, charToEasyHaskell :: Char -> String
+pprFSInCStyle :: FAST_STRING -> SDoc
+pprFSInCStyle fs = doubleQuotes (text (stringToC (_UNPK_ fs)))
+
-- stringToC: the hassle is what to do w/ strings like "ESC 0"...
stringToC "" = ""