fpco-api-1.1.1: Simple interface to the FP Complete IDE API.

Safe HaskellNone

FP.API.Run

Description

Function for running arbitrary IDE API commands.

Synopsis

Documentation

data Command Source

Only used internally for encoding.

Constructors

IdeCommand !IdeCommand 

Instances

class (Failure HttpException m, MonadIO m, Functor m) => MonadClient m whereSource

Monad that can get info for sending commands.

Instances

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.

Constructors

CC 

Instances

(Failure HttpException m, MonadIO m, Functor m) => MonadClient (ReaderT ClientConfig m)

Helpful simple client instance.

runCommand :: (MonadLogger m, MonadClient m, Data a, Show a) => (Returns' a -> IdeCommand) -> m aSource

Run the given command.