ghc-mod-4.1.5: Happy Haskell Programming

Safe HaskellNone

Language.Haskell.GhcMod.Ghc

Contents

Synopsis

Converting the Ghc monad to the IO monad

withGHCSource

Arguments

:: FilePath

A target file displayed in an error message.

-> Ghc a

Ghc actions created by the Ghc utilities.

-> IO a 

Converting the Ghc monad to the IO monad.

Ghc utilities

boot :: Options -> Ghc StringSource

Printing necessary information for front-end booting.

browseSource

Arguments

:: Options 
-> ModuleString

A module name. (e.g. "Data.List")

-> Ghc String 

Getting functions, classes, etc from a module. If detailed is True, their types are also obtained. If operators is True, operators are also returned.

checkSource

Arguments

:: Options 
-> [FilePath]

The target files.

-> Ghc (Either String String) 

Checking syntax of a target file using GHC. Warnings and errors are returned.

infoSource

Arguments

:: Options 
-> FilePath

A target file.

-> Expression

A Haskell expression.

-> Ghc String 

Obtaining information of a target expression. (GHCi's info:)

typesSource

Arguments

:: Options 
-> FilePath

A target file.

-> Int

Line number.

-> Int

Column number.

-> Ghc String 

Obtaining type of a target expression. (GHCi's type:)

modules :: Options -> Ghc StringSource

Listing installed modules.

SymMdlDb

type Symbol = StringSource

Type of key for SymMdlDb.

data SymMdlDb Source

Database from Symbol to modules.

lookupSym :: Options -> Symbol -> SymMdlDb -> StringSource

Looking up SymMdlDb with Symbol to find modules.