Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.Tools.Daemon.State
Synopsis
- data DaemonSessionState = DaemonSessionState {
- _refSessMCs :: [ModuleCollection SourceFileKey]
- _packageDB :: Maybe (PackageDB, Bool)
- _ghcFlagsSet :: DynFlags -> DynFlags
- _pkgDbFlags :: DynFlags -> DynFlags
- _packageDBLocs :: [FilePath]
- _exiting :: Bool
- _undoStack :: [[UndoRefactor]]
- _watchProc :: Maybe WatchProcess
- _watchThreads :: [ThreadId]
- _touchedFiles :: Set FilePath
- initSession :: DaemonSessionState
- resetSession :: DaemonSessionState -> DaemonSessionState
- watchThreads :: Lens DaemonSessionState DaemonSessionState [ThreadId] [ThreadId]
- watchProc :: Lens DaemonSessionState DaemonSessionState (Maybe WatchProcess) (Maybe WatchProcess)
- undoStack :: Lens DaemonSessionState DaemonSessionState [[UndoRefactor]] [[UndoRefactor]]
- touchedFiles :: Lens DaemonSessionState DaemonSessionState (Set FilePath) (Set FilePath)
- refSessMCs :: Lens DaemonSessionState DaemonSessionState [ModuleCollection SourceFileKey] [ModuleCollection SourceFileKey]
- pkgDbFlags :: Lens DaemonSessionState DaemonSessionState (DynFlags -> DynFlags) (DynFlags -> DynFlags)
- packageDBLocs :: Lens DaemonSessionState DaemonSessionState [FilePath] [FilePath]
- packageDB :: Lens DaemonSessionState DaemonSessionState (Maybe (PackageDB, Bool)) (Maybe (PackageDB, Bool))
- ghcFlagsSet :: Lens DaemonSessionState DaemonSessionState (DynFlags -> DynFlags) (DynFlags -> DynFlags)
- exiting :: Lens DaemonSessionState DaemonSessionState Bool Bool
Documentation
data DaemonSessionState Source #
The actual state of the daemon process. Contains loaded modules and user settings. The GHC state is handled separately.
Constructors
DaemonSessionState | |
Fields
|
initSession :: DaemonSessionState Source #
An initial state of a daemon session.
watchThreads :: Lens DaemonSessionState DaemonSessionState [ThreadId] [ThreadId] Source #
watchProc :: Lens DaemonSessionState DaemonSessionState (Maybe WatchProcess) (Maybe WatchProcess) Source #
undoStack :: Lens DaemonSessionState DaemonSessionState [[UndoRefactor]] [[UndoRefactor]] Source #
touchedFiles :: Lens DaemonSessionState DaemonSessionState (Set FilePath) (Set FilePath) Source #
refSessMCs :: Lens DaemonSessionState DaemonSessionState [ModuleCollection SourceFileKey] [ModuleCollection SourceFileKey] Source #
pkgDbFlags :: Lens DaemonSessionState DaemonSessionState (DynFlags -> DynFlags) (DynFlags -> DynFlags) Source #
packageDBLocs :: Lens DaemonSessionState DaemonSessionState [FilePath] [FilePath] Source #
packageDB :: Lens DaemonSessionState DaemonSessionState (Maybe (PackageDB, Bool)) (Maybe (PackageDB, Bool)) Source #
ghcFlagsSet :: Lens DaemonSessionState DaemonSessionState (DynFlags -> DynFlags) (DynFlags -> DynFlags) Source #