diff options
author | David Terei <davidterei@gmail.com> | 2012-01-25 18:17:16 -0800 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2012-01-25 18:43:25 -0800 |
commit | a1edfab75b3f0aaa4cf730fae80415339427a2a0 (patch) | |
tree | d67ce4bf8f713748a6c0746672d7c0d9f586ea79 /ghc/GhciMonad.hs | |
parent | 0120d0d2ef80c7268deed747bb5888b3a2ef1b39 (diff) | |
download | haskell-a1edfab75b3f0aaa4cf730fae80415339427a2a0.tar.gz |
Improve source code documentation og GHCi main.
Diffstat (limited to 'ghc/GhciMonad.hs')
-rw-r--r-- | ghc/GhciMonad.hs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ghc/GhciMonad.hs b/ghc/GhciMonad.hs index be9a9f6b2f..263871b772 100644 --- a/ghc/GhciMonad.hs +++ b/ghc/GhciMonad.hs @@ -9,7 +9,20 @@ -- ----------------------------------------------------------------------------- -module GhciMonad where +module GhciMonad ( + GHCi(..), startGHCi, + GHCiState(..), setGHCiState, getGHCiState, modifyGHCiState, + GHCiOption(..), isOptionSet, setOption, unsetOption, + Command, + BreakLocation(..), + TickArray, + setDynFlags, + + runStmt, runDecls, resume, timeIt, recordBreak, revertCAFs, + + printForUser, printForUserPartWay, prettyLocations, + initInterpBuffering, turnOffBuffering, flushInterpBuffers + ) where #include "HsVersions.h" @@ -249,6 +262,7 @@ printForUserPartWay doc = do unqual <- GHC.getPrintUnqual liftIO $ Outputable.printForUserPartWay stdout opt_PprUserLength unqual doc +-- | Run a single Haskell expression runStmt :: String -> GHC.SingleStep -> GHCi (Maybe GHC.RunResult) runStmt expr step = do st <- getGHCiState |