[commit: ghc] ghc-7.8: Export runTcInteractive from TcRnDriver, and from GHC (Trac #8878) (24e7387)

git at git.haskell.org git at git.haskell.org
Mon Mar 17 15:36:46 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/24e738787feaf024f47251196763f6d6b23565b8/ghc

>---------------------------------------------------------------

commit 24e738787feaf024f47251196763f6d6b23565b8
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Mar 13 12:13:49 2014 +0000

    Export runTcInteractive from TcRnDriver, and from GHC (Trac #8878)
    
    (cherry picked from commit 60bbc0af79ddfe977d93e271b57c2bc25d3fcde6)


>---------------------------------------------------------------

24e738787feaf024f47251196763f6d6b23565b8
 compiler/main/GHC.hs              |    2 ++
 compiler/typecheck/TcRnDriver.lhs |    1 +
 2 files changed, 3 insertions(+)

diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs
index 553d1a9..5fe384e 100644
--- a/compiler/main/GHC.hs
+++ b/compiler/main/GHC.hs
@@ -102,6 +102,7 @@ module GHC (
         parseName,
         RunResult(..),  
         runStmt, runStmtWithLocation, runDecls, runDeclsWithLocation,
+        runTcInteractive,   -- Desired by some clients (Trac #8878)
         parseImportDecl, SingleStep(..),
         resume,
         Resume(resumeStmt, resumeThreadId, resumeBreakInfo, resumeSpan,
@@ -257,6 +258,7 @@ module GHC (
 import ByteCodeInstr
 import BreakArray
 import InteractiveEval
+import TcRnDriver       ( runTcInteractive )
 #endif
 
 import HscMain
diff --git a/compiler/typecheck/TcRnDriver.lhs b/compiler/typecheck/TcRnDriver.lhs
index dad2c67..90d7151 100644
--- a/compiler/typecheck/TcRnDriver.lhs
+++ b/compiler/typecheck/TcRnDriver.lhs
@@ -13,6 +13,7 @@ module TcRnDriver (
         getModuleInterface,
         tcRnDeclsi,
         isGHCiMonad,
+        runTcInteractive,    -- Used by GHC API clients (Trac #8878)
 #endif
         tcRnLookupName,
         tcRnGetInfo,



More information about the ghc-commits mailing list