X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fcompiler%2FjavaGen%2FPrintJava.lhs;h=eb2811d38f1efe4d413ed9d18cc9f4cd3cb615da;hb=c883f6969ad957637649f3af1a2b6977555bdd32;hp=0db596d4891457b0e2b8d1d77d35b8a4680232ce;hpb=4d0f4a6957c00b3e54c2d468feb3ecf3e00e469e;p=ghc-hetmet.git diff --git a/ghc/compiler/javaGen/PrintJava.lhs b/ghc/compiler/javaGen/PrintJava.lhs index 0db596d..eb2811d 100644 --- 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 "}" -staticblock = \ss -> - text "static" <+> text "{" - $$ indent ss - $$ text "}" - 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) - ; CharLit c -> text (show c) + ; CharLit c -> text "(char)" <+> text (show c) ; StringLit s -> text ("\"" ++ s ++ "\"") -- strings are already printable }