From: simonpj Date: Wed, 11 Dec 2002 12:04:05 +0000 (+0000) Subject: [project @ 2002-12-11 12:04:05 by simonpj] X-Git-Tag: Approx_11550_changesets_converted~1367 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2a85d6e815dff5161b20bd16f6b029bcc92d6645;p=ghc-hetmet.git [project @ 2002-12-11 12:04:05 by simonpj] wibbles to External Core --- diff --git a/ghc/compiler/coreSyn/ExternalCore.lhs b/ghc/compiler/coreSyn/ExternalCore.lhs index adfaecd..06cf079 100644 --- a/ghc/compiler/coreSyn/ExternalCore.lhs +++ b/ghc/compiler/coreSyn/ExternalCore.lhs @@ -76,7 +76,7 @@ type Qual t = (Mname,t) type Id = String -primMname = "GHC.Prim" +primMname = "GHCziPrim" tcArrow :: Qual Tcon tcArrow = (primMname, "ZLzmzgZR") diff --git a/ghc/compiler/coreSyn/MkExternalCore.lhs b/ghc/compiler/coreSyn/MkExternalCore.lhs index 0f37564..20963b0 100644 --- a/ghc/compiler/coreSyn/MkExternalCore.lhs +++ b/ghc/compiler/coreSyn/MkExternalCore.lhs @@ -38,7 +38,7 @@ emitExternalCore :: DynFlags -> ModGuts -> IO () emitExternalCore dflags mod_impl | opt_EmitExternalCore = (do handle <- openFile corename WriteMode - hPutStr handle (show (mkExternalCore mod_impl)) + hPutStrLn handle (show (mkExternalCore mod_impl)) hClose handle) `catch` (\err -> pprPanic "Failed to open or write external core output file" (text corename))