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