2013-05-21 12:38:19 +00:00
|
|
|
-- | The ghc-mod library.
|
|
|
|
|
2013-05-17 01:00:01 +00:00
|
|
|
module Language.Haskell.GhcMod (
|
2013-05-20 02:29:44 +00:00
|
|
|
-- * Cradle
|
|
|
|
Cradle(..)
|
2015-08-12 07:25:13 +00:00
|
|
|
, ProjectType(..)
|
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
|
|
|
|
, 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-08-14 03:57:33 +00:00
|
|
|
, gmUnsafePutStrLn
|
|
|
|
, gmUnsafeErrStrLn
|
2015-05-31 08:32:46 +00:00
|
|
|
-- * FileMapping
|
2015-08-11 16:39:23 +00:00
|
|
|
, loadMappedFile
|
|
|
|
, unloadMappedFile
|
2013-05-17 01:00:01 +00:00
|
|
|
) where
|
|
|
|
|
2014-04-30 01:49:25 +00:00
|
|
|
import Language.Haskell.GhcMod.Boot
|
2013-05-17 01:00:01 +00:00
|
|
|
import Language.Haskell.GhcMod.Browse
|
2014-07-17 05:30:42 +00:00
|
|
|
import Language.Haskell.GhcMod.CaseSplit
|
2013-05-17 01:00:01 +00:00
|
|
|
import Language.Haskell.GhcMod.Check
|
|
|
|
import Language.Haskell.GhcMod.Cradle
|
|
|
|
import Language.Haskell.GhcMod.Debug
|
2014-07-17 05:30:42 +00:00
|
|
|
import Language.Haskell.GhcMod.FillSig
|
2014-04-24 12:08:45 +00:00
|
|
|
import Language.Haskell.GhcMod.Find
|
2013-05-17 01:00:01 +00:00
|
|
|
import Language.Haskell.GhcMod.Flag
|
|
|
|
import Language.Haskell.GhcMod.Info
|
|
|
|
import Language.Haskell.GhcMod.Lang
|
|
|
|
import Language.Haskell.GhcMod.Lint
|
2015-03-03 20:12:43 +00:00
|
|
|
import Language.Haskell.GhcMod.Logging
|
2014-08-28 09:41:03 +00:00
|
|
|
import Language.Haskell.GhcMod.Modules
|
2015-03-03 20:12:43 +00:00
|
|
|
import Language.Haskell.GhcMod.Monad
|
2014-03-27 07:22:49 +00:00
|
|
|
import Language.Haskell.GhcMod.PkgDoc
|
2013-05-17 01:00:01 +00:00
|
|
|
import Language.Haskell.GhcMod.Types
|
2015-08-05 06:52:52 +00:00
|
|
|
import Language.Haskell.GhcMod.Target
|
2015-08-13 04:47:12 +00:00
|
|
|
import Language.Haskell.GhcMod.Output
|
2015-08-11 16:39:23 +00:00
|
|
|
import Language.Haskell.GhcMod.FileMapping
|