ghc-mod/Language/Haskell/GhcMod/Internal.hs

81 lines
1.7 KiB
Haskell
Raw Normal View History

-- | Low level access to the ghc-mod library.
module Language.Haskell.GhcMod.Internal (
2013-09-16 00:56:08 +00:00
-- * Types
2014-04-28 12:43:24 +00:00
GHCOption
2013-09-16 00:56:08 +00:00
, Package
2014-04-24 03:17:50 +00:00
, PackageBaseName
, PackageVersion
, PackageId
2013-09-16 00:56:08 +00:00
, IncludeDir
, GmlT(..)
, MonadIO(..)
, GmEnv(..)
-- * Various Paths
, ghcLibDir
, ghcModExecutable
2014-04-28 04:52:28 +00:00
-- * Logging
, withLogger
2014-08-19 08:18:36 +00:00
, setNoWarningFlags
, setAllWarningFlags
2014-07-18 06:42:05 +00:00
-- * Environment, state and logging
, GhcModEnv(..)
, GhcModState
2014-07-22 17:45:48 +00:00
, CompilerMode(..)
, GhcModLog
, GmLog(..)
, GmLogLevel(..)
, gmSetLogLevel
2014-07-18 06:42:05 +00:00
-- * Monad utilities
, runGhcModT'
, hoistGhcModT
, runGmlT
, runGmlT'
, gmlGetSession
, gmlSetSession
, loadTargets
, cabalResolvedComponents
2014-07-18 06:42:05 +00:00
-- ** Accessing 'GhcModEnv' and 'GhcModState'
, options
, cradle
2014-07-22 17:45:48 +00:00
, getCompilerMode
, setCompilerMode
, targetGhcOptions
2014-07-18 06:42:05 +00:00
, withOptions
-- * 'GhcModError'
, gmeDoc
2014-09-23 08:34:09 +00:00
-- * World
, World
, getCurrentWorld
2014-11-01 21:02:47 +00:00
, didWorldChange
-- * Cabal Helper
, ModulePath(..)
, GmComponent(..)
, GmComponentType(..)
, GmModuleGraph(..)
, prepareCabalHelper
2015-08-14 03:57:33 +00:00
-- * Misc stuff
, GHandler(..)
, gcatches
-- * FileMapping
, module Language.Haskell.GhcMod.FileMapping
) where
import GHC.Paths (libdir)
import Language.Haskell.GhcMod.Target
import Language.Haskell.GhcMod.DynFlags
import Language.Haskell.GhcMod.Error
2014-04-28 12:47:08 +00:00
import Language.Haskell.GhcMod.Logger
import Language.Haskell.GhcMod.Logging
2014-07-18 06:42:05 +00:00
import Language.Haskell.GhcMod.Monad
import Language.Haskell.GhcMod.Types
import Language.Haskell.GhcMod.Utils
2014-11-01 21:02:47 +00:00
import Language.Haskell.GhcMod.World
import Language.Haskell.GhcMod.CabalHelper
import Language.Haskell.GhcMod.FileMapping
-- | Obtaining the directory for ghc system libraries.
ghcLibDir :: FilePath
ghcLibDir = libdir