Safe Haskell | None |
---|---|
Language | Haskell98 |
- type ServerMonadBase m = (MonadIO m, MonadMask m, MonadBaseControl IO m, Alternative m, MonadPlus m)
- data SessionLog = SessionLog {
- sessionLogger :: Log
- sessionListenLog :: IO [String]
- sessionLogWait :: IO ()
- data Session = Session {
- sessionDatabase :: Async Database
- sessionWriteCache :: Database -> ServerM IO ()
- sessionReadCache :: (FilePath -> ExceptT String IO Structured) -> ServerM IO (Maybe Database)
- sessionLog :: SessionLog
- sessionWatcher :: Watcher
- sessionGhc :: GhcWorker
- sessionExit :: IO ()
- sessionWait :: IO ()
- sessionDefines :: [(String, String)]
- class (ServerMonadBase m, MonadLog m) => SessionMonad m where
- askSession :: SessionMonad m => (Session -> a) -> m a
- newtype ServerM m a = ServerM {
- runServerM :: ReaderT Session m a
- data CommandOptions = CommandOptions {
- commandOptionsRoot :: FilePath
- commandOptionsNotify :: Notification -> IO ()
- commandOptionsLink :: IO ()
- commandOptionsHold :: IO ()
- class (SessionMonad m, MonadPlus m) => CommandMonad m where
- askOptions :: CommandMonad m => (CommandOptions -> a) -> m a
- newtype ClientM m a = ClientM {
- runClientM :: ServerM (ReaderT CommandOptions m) a
- withSession :: Session -> ServerM m a -> m a
- serverListen :: SessionMonad m => m [String]
- serverSetLogLevel :: SessionMonad m => Level -> m Level
- serverWait :: SessionMonad m => m ()
- serverUpdateDB :: SessionMonad m => Database -> m ()
- serverWriteCache :: SessionMonad m => Database -> m ()
- serverReadCache :: SessionMonad m => (FilePath -> ExceptT String IO Structured) -> m (Maybe Database)
- inSessionGhc :: SessionMonad m => GhcM a -> m a
- serverExit :: SessionMonad m => m ()
- commandRoot :: CommandMonad m => m FilePath
- commandNotify :: CommandMonad m => Notification -> m ()
- commandLink :: CommandMonad m => m ()
- commandHold :: CommandMonad m => m ()
- data ServerCommand
- data ConnectionPort
- data ServerOpts = ServerOpts {}
- silentOpts :: ServerOpts
- data ClientOpts = ClientOpts {}
- serverOptsArgs :: ServerOpts -> [String]
- data Request = Request {}
- data Command
- = Ping
- | Listen (Maybe String)
- | SetLogLevel String
- | AddData { }
- | Scan {
- scanProjects :: [FilePath]
- scanCabal :: Bool
- scanSandboxes :: [FilePath]
- scanFiles :: [FileSource]
- scanPaths :: [FilePath]
- scanGhcOpts :: [String]
- scanDocs :: Bool
- scanInferTypes :: Bool
- | RefineDocs {
- docsProjects :: [FilePath]
- docsFiles :: [FilePath]
- docsModules :: [String]
- | InferTypes {
- inferProjects :: [FilePath]
- inferFiles :: [FilePath]
- inferModules :: [String]
- | Remove {
- removeProjects :: [FilePath]
- removeCabal :: Bool
- removeSandboxes :: [FilePath]
- removeFiles :: [FilePath]
- | RemoveAll
- | InfoModules [TargetFilter]
- | InfoPackages
- | InfoProjects
- | InfoSandboxes
- | InfoSymbol SearchQuery [TargetFilter] Bool
- | InfoModule SearchQuery [TargetFilter]
- | InfoResolve FilePath Bool
- | InfoProject (Either String FilePath)
- | InfoSandbox FilePath
- | Lookup String FilePath
- | Whois String FilePath
- | ResolveScopeModules SearchQuery FilePath
- | ResolveScope SearchQuery Bool FilePath
- | Complete String Bool FilePath
- | Hayoo {
- hayooQuery :: String
- hayooPage :: Int
- hayooPages :: Int
- | CabalList {
- cabalListPackages :: [String]
- | Lint {
- lintFiles :: [FileSource]
- | Check {
- checkFiles :: [FileSource]
- checkGhcOpts :: [String]
- | CheckLint {
- checkLintFiles :: [FileSource]
- checkLintGhcOpts :: [String]
- | Types {
- typesFiles :: [FileSource]
- typesGhcOpts :: [String]
- | AutoFix { }
- | GhcEval { }
- | Langs
- | Flags
- | Link { }
- | Exit
- data AddedContents
- data AutoFixCommand
- data FileSource = FileSource {}
- data TargetFilter
- data SearchQuery = SearchQuery String SearchType
- data SearchType
- class FromCmd a where
Documentation
type ServerMonadBase m = (MonadIO m, MonadMask m, MonadBaseControl IO m, Alternative m, MonadPlus m) Source #
data SessionLog Source #
SessionLog | |
|
Session | |
|
class (ServerMonadBase m, MonadLog m) => SessionMonad m where Source #
getSession :: m Session Source #
ServerMonadBase m => SessionMonad (ClientM m) Source # | |
ServerMonadBase m => SessionMonad (ServerM m) Source # | |
ServerMonadBase m => SessionMonad (UpdateM m) Source # | |
askSession :: SessionMonad m => (Session -> a) -> m a Source #
ServerM | |
|
MonadTrans ServerM Source # | |
Monad m => MonadReader Session (ServerM m) Source # | |
MonadBase b m => MonadBase b (ServerM m) Source # | |
MonadBaseControl b m => MonadBaseControl b (ServerM m) Source # | |
Monad m => Monad (ServerM m) Source # | |
Functor m => Functor (ServerM m) Source # | |
Applicative m => Applicative (ServerM m) Source # | |
Alternative m => Alternative (ServerM m) Source # | |
MonadPlus m => MonadPlus (ServerM m) Source # | |
MonadIO m => MonadIO (ServerM m) Source # | |
MonadThrow m => MonadThrow (ServerM m) Source # | |
MonadCatch m => MonadCatch (ServerM m) Source # | |
MonadMask m => MonadMask (ServerM m) Source # | |
(MonadIO m, MonadMask m) => MonadLog (ServerM m) Source # | |
ServerMonadBase m => SessionMonad (ServerM m) Source # | |
type StM (ServerM m) a Source # | |
data CommandOptions Source #
CommandOptions | |
|
class (SessionMonad m, MonadPlus m) => CommandMonad m where Source #
getOptions :: m CommandOptions Source #
ServerMonadBase m => CommandMonad (ClientM m) Source # | |
ServerMonadBase m => CommandMonad (UpdateM m) Source # | |
askOptions :: CommandMonad m => (CommandOptions -> a) -> m a Source #
ClientM | |
|
MonadTrans ClientM Source # | |
MonadBase b m => MonadBase b (ClientM m) Source # | |
MonadBaseControl b m => MonadBaseControl b (ClientM m) Source # | |
Monad m => Monad (ClientM m) Source # | |
Functor m => Functor (ClientM m) Source # | |
Applicative m => Applicative (ClientM m) Source # | |
Alternative m => Alternative (ClientM m) Source # | |
MonadPlus m => MonadPlus (ClientM m) Source # | |
MonadIO m => MonadIO (ClientM m) Source # | |
MonadThrow m => MonadThrow (ClientM m) Source # | |
MonadCatch m => MonadCatch (ClientM m) Source # | |
MonadMask m => MonadMask (ClientM m) Source # | |
(MonadIO m, MonadMask m) => MonadLog (ClientM m) Source # | |
ServerMonadBase m => CommandMonad (ClientM m) Source # | |
ServerMonadBase m => SessionMonad (ClientM m) Source # | |
type StM (ClientM m) a Source # | |
withSession :: Session -> ServerM m a -> m a Source #
Run action on session
serverListen :: SessionMonad m => m [String] Source #
Listen server's log
serverSetLogLevel :: SessionMonad m => Level -> m Level Source #
Set server's log config
serverWait :: SessionMonad m => m () Source #
Wait for server
serverUpdateDB :: SessionMonad m => Database -> m () Source #
Update database
serverWriteCache :: SessionMonad m => Database -> m () Source #
Server write cache
serverReadCache :: SessionMonad m => (FilePath -> ExceptT String IO Structured) -> m (Maybe Database) Source #
Server read cache
inSessionGhc :: SessionMonad m => GhcM a -> m a Source #
In ghc session
serverExit :: SessionMonad m => m () Source #
Exit session
commandRoot :: CommandMonad m => m FilePath Source #
commandNotify :: CommandMonad m => Notification -> m () Source #
commandLink :: CommandMonad m => m () Source #
commandHold :: CommandMonad m => m () Source #
data ServerCommand Source #
Server control command
data ConnectionPort Source #
data ServerOpts Source #
Server options
ServerOpts | |
|
silentOpts :: ServerOpts Source #
Silent server with no connection, useful for ghci
data ClientOpts Source #
Client options
ClientOpts | |
|
serverOptsArgs :: ServerOpts -> [String] Source #
Command from client
data AddedContents Source #
data AutoFixCommand Source #
data FileSource Source #
data TargetFilter Source #
data SearchQuery Source #
data SearchType Source #