[project @ 2002-12-11 12:04:05 by simonpj]
authorsimonpj <unknown>
Wed, 11 Dec 2002 12:04:05 +0000 (12:04 +0000)
committersimonpj <unknown>
Wed, 11 Dec 2002 12:04:05 +0000 (12:04 +0000)
wibbles to External Core

ghc/compiler/coreSyn/ExternalCore.lhs
ghc/compiler/coreSyn/MkExternalCore.lhs

index adfaecd..06cf079 100644 (file)
@@ -76,7 +76,7 @@ type Qual t = (Mname,t)
 
 type Id = String
 
-primMname = "GHC.Prim"
+primMname = "GHCziPrim"
 
 tcArrow :: Qual Tcon
 tcArrow = (primMname, "ZLzmzgZR")
index 0f37564..20963b0 100644 (file)
@@ -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))