projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a83cc6
)
[project @ 2000-02-11 13:07:25 by simonpj]
author
simonpj
<unknown>
Fri, 11 Feb 2000 13:07:25 +0000
(13:07 +0000)
committer
simonpj
<unknown>
Fri, 11 Feb 2000 13:07:25 +0000
(13:07 +0000)
Add pprFSInCStyle
ghc/compiler/absCSyn/CStrings.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/absCSyn/CStrings.lhs
b/ghc/compiler/absCSyn/CStrings.lhs
index
26644da
..
dcbf165
100644
(file)
--- a/
ghc/compiler/absCSyn/CStrings.lhs
+++ b/
ghc/compiler/absCSyn/CStrings.lhs
@@
-4,7
+4,7
@@
This module deals with printing C string literals
module CStrings(
cSEP, pp_cSEP,
- stringToC, charToC,
+ stringToC, charToC, pprFSInCStyle,
charToEasyHaskell
) where
@@
-22,6
+22,9
@@
pp_cSEP = char '_'
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 "" = ""