Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ScriptSession = ScriptSession {}
- newtype ScriptSessionError = ScriptSessionLoadError GhcException
- initScriptSession :: [String] -> IO (Either ScriptSessionError ScriptSession)
- addImport :: String -> Ghc ()
- showType :: DynFlags -> Type -> String
- mkTypeForName :: String -> Ghc Type
- compileScript :: Type -> Text -> Ghc (Either ScriptCompilationError a)
- typeCheckScript :: Type -> Text -> Ghc (Maybe ScriptCompilationError)
Documentation
data ScriptSession Source #
newtype ScriptSessionError Source #
initScriptSession :: [String] -> IO (Either ScriptSessionError ScriptSession) Source #
Configure a GHC environment/session which we will use for all script compilation.
compileScript :: Type -> Text -> Ghc (Either ScriptCompilationError a) Source #
typeCheckScript :: Type -> Text -> Ghc (Maybe ScriptCompilationError) Source #