Safe Haskell | None |
---|---|
Language | Haskell98 |
- ghcRun :: GhcMonad m => [String] -> m a -> m a
- ghcRunWith :: GhcMonad m => (DynFlags -> DynFlags) -> [String] -> m a -> m a
- interpretedFlags :: DynFlags -> DynFlags
- noLinkFlags :: DynFlags -> DynFlags
- withFlags :: GhcMonad m => m a -> m a
- modifyFlags :: GhcMonad m => (DynFlags -> DynFlags) -> m ()
- clearTargets :: GhcMonad m => m ()
- makeTarget :: GhcMonad m => Text -> Maybe Text -> m Target
- loadTargets :: GhcMonad m => [Target] -> m ()
- loadInteractive :: GhcMonad m => Path -> Maybe Text -> m ()
- reload :: GhcMonad m => m ()
- collectMessages :: GhcMonad m => m a -> m (a, [Note OutputMessage])
- collectMessages_ :: GhcMonad m => m () -> m [Note OutputMessage]
- formatType :: DynFlags -> Type -> String
- spanRegion :: SrcSpan -> Region
- withCurrentDirectory :: GhcMonad m => FilePath -> m a -> m a
- logToChan :: Chan (Note OutputMessage) -> LogAction
- logToNull :: LogAction
Running Ghc
Commonly used DynFlags
interpretedFlags :: DynFlags -> DynFlags Source #
noLinkFlags :: DynFlags -> DynFlags Source #
Setting DynFlags
Loading targets
clearTargets :: GhcMonad m => m () Source #
Clear loaded targets
makeTarget :: GhcMonad m => Text -> Maybe Text -> m Target Source #
Make target with its source code optional
loadTargets :: GhcMonad m => [Target] -> m () Source #
Load all targets
loadInteractive :: GhcMonad m => Path -> Maybe Text -> m () Source #
Load and set interactive context
Logging messages
collectMessages :: GhcMonad m => m a -> m (a, [Note OutputMessage]) Source #
Collect messages from ghc for underlying computation
collectMessages_ :: GhcMonad m => m () -> m [Note OutputMessage] Source #
Same as collectMessages
, but when no result except notes needed
Util
spanRegion :: SrcSpan -> Region Source #
Get region of SrcSpan
withCurrentDirectory :: GhcMonad m => FilePath -> m a -> m a Source #
Set current directory and restore it after action