| Safe Haskell | None |
|---|
Language.Haskell.GhcMod.Ghc
- withGHC :: FilePath -> Ghc a -> IO a
- withGHC' :: Ghc a -> IO a
- boot :: Options -> Ghc String
- browse :: Options -> ModuleString -> Ghc String
- check :: Options -> [FilePath] -> Ghc (Either String String)
- info :: Options -> FilePath -> Expression -> Ghc String
- types :: Options -> FilePath -> Int -> Int -> Ghc String
- modules :: Options -> Ghc String
- type Symbol = String
- data SymMdlDb
- getSymMdlDb :: Ghc SymMdlDb
- lookupSym :: Options -> Symbol -> SymMdlDb -> String
Converting the Ghc monad to the IO monad
Ghc utilities
Arguments
| :: Options | |
| -> ModuleString | A module name. (e.g. "Data.List") |
| -> Ghc String |
Checking syntax of a target file using GHC. Warnings and errors are returned.
Arguments
| :: Options | |
| -> FilePath | A target file. |
| -> Expression | A Haskell expression. |
| -> Ghc String |
Obtaining information of a target expression. (GHCi's info:)
Obtaining type of a target expression. (GHCi's type:)
SymMdlDb
getSymMdlDb :: Ghc SymMdlDbSource
Creating SymMdlDb.