Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data FixDebounce
- data CompliationMode
- data GHCSessionConfig = GHCSessionConfig {}
- defaultGHCSessionConfig :: GHCSessionConfig
- logIO :: MonadIO m => String -> m ()
- withGHCSession :: ThreadId -> GHCSessionConfig -> Ghc a -> IO a
- gatherErrors :: GhcMonad m => SourceError -> m [String]
- newtype CompiledValue = CompiledValue Dynamic
- getCompiledValue :: Typeable a => CompiledValue -> Maybe a
- fileContentsStringToBuffer :: MonadIO m => Maybe String -> m (Maybe (StringBuffer, UTCTime))
- recompileExpressionInFile :: FilePath -> Maybe String -> String -> Ghc (Either [String] CompiledValue)
- catchExceptions :: ExceptionMonad m => m (Either [String] a) -> m (Either [String] a)
- output :: (GhcMonad m, Outputable a) => a -> m ()
- logHandler :: IORef String -> LogAction
- module GHC.LanguageExtensions
Documentation
data GHCSessionConfig Source #
GHCSessionConfig | |
|
withGHCSession :: ThreadId -> GHCSessionConfig -> Ghc a -> IO a Source #
gatherErrors :: GhcMonad m => SourceError -> m [String] Source #
getCompiledValue :: Typeable a => CompiledValue -> Maybe a Source #
fileContentsStringToBuffer :: MonadIO m => Maybe String -> m (Maybe (StringBuffer, UTCTime)) Source #
recompileExpressionInFile :: FilePath -> Maybe String -> String -> Ghc (Either [String] CompiledValue) Source #
We return the uncoerced HValue, which lets us send polymorphic values back through channels
catchExceptions :: ExceptionMonad m => m (Either [String] a) -> m (Either [String] a) Source #
output :: (GhcMonad m, Outputable a) => a -> m () Source #
Outputs any value that can be pretty-printed using the default style
module GHC.LanguageExtensions