projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-03-10 14:03:28 by simonmar]
[ghc-hetmet.git]
/
ghc
/
compiler
/
javaGen
/
PrintJava.lhs
diff --git
a/ghc/compiler/javaGen/PrintJava.lhs
b/ghc/compiler/javaGen/PrintJava.lhs
index
0db596d
..
eb2811d
100644
(file)
--- a/
ghc/compiler/javaGen/PrintJava.lhs
+++ b/
ghc/compiler/javaGen/PrintJava.lhs
@@
-81,11
+81,6
@@
clazz = \mfs -> \n -> \x -> \is -> \ms ->
$$ indent ms
$$ text "}"
$$ indent ms
$$ text "}"
-staticblock = \ss ->
- text "static" <+> text "{"
- $$ indent ss
- $$ text "}"
-
modifiers mfs = hsep (map modifier mfs)
modifier mf = text $ map toLower (show mf)
modifiers mfs = hsep (map modifier mfs)
modifier mf = text $ map toLower (show mf)
@@
-220,7
+215,7
@@
call e n es = e <> dot <> n <> parens (hsep (punctuate comma (map expr es)))
literal = \l ->
case l of
{ IntLit i -> text (show i)
literal = \l ->
case l of
{ IntLit i -> text (show i)
- ; CharLit c -> text (show c)
+ ; CharLit c -> text "(char)" <+> text (show c)
; StringLit s -> text ("\"" ++ s ++ "\"") -- strings are already printable
}
; StringLit s -> text ("\"" ++ s ++ "\"") -- strings are already printable
}