Safe Haskell | None |
---|---|
Language | Haskell98 |
HsDev.Tools.Ghc.Worker
- ghcWorker :: [String] -> Ghc () -> IO (Worker Ghc)
- ghciWorker :: IO (Worker Ghc)
- withFlags :: Ghc a -> Ghc a
- modifyFlags :: (DynFlags -> DynFlags) -> Ghc ()
- addCmdOpts :: [String] -> Ghc DynFlags
- importModules :: [String] -> Ghc ()
- preludeModules :: [String]
- evaluate :: String -> Ghc String
- clearTargets :: Ghc ()
- makeTarget :: String -> Maybe String -> Ghc Target
- loadTargets :: [Target] -> Ghc ()
- listPackages :: Ghc [ModulePackage]
- spanRegion :: SrcSpan -> Region
- withCurrentDirectory :: FilePath -> Ghc a -> Ghc a
- data Ghc a :: * -> *
- module Control.Concurrent.Worker
Workers
ghcWorker :: [String] -> Ghc () -> IO (Worker Ghc) Source
Ghc worker. Pass options and initializer action
ghciWorker :: IO (Worker Ghc) Source
Interpreter worker is worker with preludeModules
loaded
Initializers and actions
modifyFlags :: (DynFlags -> DynFlags) -> Ghc () Source
Update DynFlags
addCmdOpts :: [String] -> Ghc DynFlags Source
importModules :: [String] -> Ghc () Source
Import some modules
preludeModules :: [String] Source
Default interpreter modules
clearTargets :: Ghc () Source
Clear loaded targets
loadTargets :: [Target] -> Ghc () Source
Load all targets
Utils
listPackages :: Ghc [ModulePackage] Source
Get list of installed packages
spanRegion :: SrcSpan -> Region Source
Get region of SrcSpan
withCurrentDirectory :: FilePath -> Ghc a -> Ghc a Source
Set current directory and restore it after action
data Ghc a :: * -> *
module Control.Concurrent.Worker