Safe Haskell | None |
---|
Function for running arbitrary IDE API commands.
- data Command = IdeCommand !IdeCommand
- class (Failure HttpException m, MonadIO m, Functor m) => MonadClient m where
- data ClientConfig = CC {}
- data CommandException = CommandException Text
- runCommand :: (MonadLogger m, MonadClient m, Data a, Show a) => (Returns' a -> IdeCommand) -> m a
Documentation
class (Failure HttpException m, MonadIO m, Functor m) => MonadClient m whereSource
Monad that can get info for sending commands.
MonadClient Server | Necessary for calling Fay API functions. |
(Failure HttpException m, MonadIO m, Functor m) => MonadClient (ReaderT ClientConfig m) | Helpful simple client instance. |
data ClientConfig Source
Simple command configuration.
(Failure HttpException m, MonadIO m, Functor m) => MonadClient (ReaderT ClientConfig m) | Helpful simple client instance. |
data CommandException Source
runCommand :: (MonadLogger m, MonadClient m, Data a, Show a) => (Returns' a -> IdeCommand) -> m aSource
Run the given command.