2013-05-21 12:38:19 +00:00
|
|
|
-- | The ghc-mod library.
|
|
|
|
|
2017-01-12 15:36:47 +00:00
|
|
|
module GhcMod (
|
2013-05-20 02:29:44 +00:00
|
|
|
-- * Cradle
|
|
|
|
Cradle(..)
|
2015-09-11 01:48:52 +00:00
|
|
|
, Project(..)
|
2013-05-20 02:29:44 +00:00
|
|
|
, findCradle
|
|
|
|
-- * Options
|
|
|
|
, Options(..)
|
2013-09-03 05:47:34 +00:00
|
|
|
, LineSeparator(..)
|
2013-05-20 02:29:44 +00:00
|
|
|
, OutputStyle(..)
|
2015-05-31 08:32:46 +00:00
|
|
|
, FileMapping(..)
|
2013-05-20 02:29:44 +00:00
|
|
|
, defaultOptions
|
2015-03-03 20:12:43 +00:00
|
|
|
-- * Logging
|
|
|
|
, GmLogLevel
|
|
|
|
, increaseLogLevel
|
2015-03-06 18:46:56 +00:00
|
|
|
, decreaseLogLevel
|
2015-03-03 20:12:43 +00:00
|
|
|
, gmSetLogLevel
|
|
|
|
, gmLog
|
2013-05-20 05:28:56 +00:00
|
|
|
-- * Types
|
|
|
|
, ModuleString
|
2015-06-01 15:10:37 +00:00
|
|
|
, Expression(..)
|
2014-07-11 01:10:37 +00:00
|
|
|
, GhcPkgDb
|
2014-07-17 05:04:28 +00:00
|
|
|
, Symbol
|
|
|
|
, SymbolDb
|
2014-08-21 02:14:32 +00:00
|
|
|
, GhcModError(..)
|
2014-07-18 06:31:42 +00:00
|
|
|
-- * Monad Types
|
|
|
|
, GhcModT
|
|
|
|
, IOish
|
|
|
|
-- * Monad utilities
|
|
|
|
, runGhcModT
|
|
|
|
, withOptions
|
2015-08-05 06:52:52 +00:00
|
|
|
, dropSession
|
2014-07-11 01:10:37 +00:00
|
|
|
-- * 'GhcMod' utilities
|
|
|
|
, boot
|
2014-05-10 13:10:34 +00:00
|
|
|
, browse
|
2014-07-11 01:10:37 +00:00
|
|
|
, check
|
2013-05-17 01:00:01 +00:00
|
|
|
, checkSyntax
|
2013-05-20 05:28:56 +00:00
|
|
|
, debugInfo
|
2015-03-28 01:33:42 +00:00
|
|
|
, componentInfo
|
2014-07-11 01:10:37 +00:00
|
|
|
, expandTemplate
|
|
|
|
, info
|
|
|
|
, lint
|
|
|
|
, pkgDoc
|
|
|
|
, rootInfo
|
|
|
|
, types
|
2015-12-15 23:25:15 +00:00
|
|
|
, test
|
2014-07-11 01:10:37 +00:00
|
|
|
, splits
|
|
|
|
, sig
|
2014-07-17 04:59:10 +00:00
|
|
|
, refine
|
2014-08-01 15:08:23 +00:00
|
|
|
, auto
|
2014-07-11 01:10:37 +00:00
|
|
|
, modules
|
|
|
|
, languages
|
|
|
|
, flags
|
2014-07-18 06:42:05 +00:00
|
|
|
, findSymbol
|
|
|
|
, lookupSymbol
|
|
|
|
, dumpSymbol
|
2014-07-17 05:04:28 +00:00
|
|
|
-- * SymbolDb
|
|
|
|
, loadSymbolDb
|
2014-09-20 03:25:46 +00:00
|
|
|
, isOutdated
|
2015-08-13 04:47:12 +00:00
|
|
|
-- * Output
|
|
|
|
, gmPutStr
|
|
|
|
, gmErrStr
|
|
|
|
, gmPutStrLn
|
|
|
|
, gmErrStrLn
|
2015-05-31 08:32:46 +00:00
|
|
|
-- * FileMapping
|
2015-08-11 16:39:23 +00:00
|
|
|
, loadMappedFile
|
2015-08-16 20:20:00 +00:00
|
|
|
, loadMappedFileSource
|
2015-08-11 16:39:23 +00:00
|
|
|
, unloadMappedFile
|
2013-05-17 01:00:01 +00:00
|
|
|
) where
|
|
|
|
|
2017-02-28 02:01:14 +00:00
|
|
|
import GhcModExe.Boot
|
|
|
|
import GhcModExe.Browse
|
|
|
|
import GhcModExe.CaseSplit
|
|
|
|
import GhcModExe.Check
|
|
|
|
import GhcModExe.Debug
|
|
|
|
import GhcModExe.FillSig
|
|
|
|
import GhcModExe.Find
|
|
|
|
import GhcModExe.Flag
|
|
|
|
import GhcModExe.Info
|
|
|
|
import GhcModExe.Lang
|
|
|
|
import GhcModExe.Lint
|
|
|
|
import GhcModExe.Modules
|
|
|
|
import GhcModExe.PkgDoc
|
|
|
|
import GhcModExe.Test
|
2013-05-17 01:00:01 +00:00
|
|
|
import Language.Haskell.GhcMod.Cradle
|
2017-01-12 15:36:47 +00:00
|
|
|
import Language.Haskell.GhcMod.FileMapping
|
2015-03-03 20:12:43 +00:00
|
|
|
import Language.Haskell.GhcMod.Logging
|
|
|
|
import Language.Haskell.GhcMod.Monad
|
2015-08-13 04:47:12 +00:00
|
|
|
import Language.Haskell.GhcMod.Output
|
2017-01-12 15:36:47 +00:00
|
|
|
import Language.Haskell.GhcMod.Target
|
|
|
|
import Language.Haskell.GhcMod.Types
|