X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FGHC.hs;h=145d6bdfcd10b73857208d5872415d851016425f;hp=8df066c1d916f176a65173a4d3e87f491f835e50;hb=a27d12f02b8ab3a3222c351dcf7e9168dfe05fb0;hpb=3f925833681ee2ecd54b26e473c5b4ac1efbd837 diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 8df066c..145d6bd 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -94,7 +94,7 @@ module GHC ( isModuleInterpreted, compileExpr, HValue, dynCompileExpr, lookupName, - GHC.obtainTerm, GHC.obtainTerm1, reconstructType, + GHC.obtainTerm, GHC.obtainTerm1, GHC.obtainTermB, reconstructType, modInfoModBreaks, ModBreaks(..), BreakIndex, BreakInfo(breakInfo_number, breakInfo_module), @@ -1995,4 +1995,9 @@ obtainTerm sess force id = withSession sess $ \hsc_env -> obtainTerm1 :: Session -> Bool -> Maybe Type -> a -> IO Term obtainTerm1 sess force mb_ty a = withSession sess $ \hsc_env -> InteractiveEval.obtainTerm1 hsc_env force mb_ty a + +obtainTermB :: Session -> Int -> Bool -> Id -> IO Term +obtainTermB sess bound force id = withSession sess $ \hsc_env -> + InteractiveEval.obtainTermB hsc_env bound force id + #endif