syncthing-hs-0.1.0.0: Haskell bindings for the Syncthing REST API

Safe HaskellNone
LanguageHaskell2010

Network.Syncthing.Internal

Contents

Description

Internal constructors and helper functions. You should NOT use this module under normal circumstances!

Synopsis

Configuration

data SyncConfig Source

The Syncthing configuration for specifying the Syncthing server, authentication, the API Key etc.

Instances

The Syncthing Monad

type SyncResult a = Either SyncError a Source

The result type of Syncthing requests.

newtype SyncM m a Source

The SyncM Monad represents one or multiple Syncthing requests.

Constructors

SyncM 

Instances

Monad m => Monad (SyncM m) 
Monad m => Functor (SyncM m) 
Monad m => Applicative (SyncM m) 

class Monad m => MonadSync m where Source

Instances

MonadSync IO

Use Wreq's getWith and postWith functions when running in IO

liftInner :: Monad m => m a -> SyncM m a Source

liftRight :: Monad m => a -> SyncM m a Source

Requests

type Param = (Text, Text) Source

data HttpMethod Source

Constructors

Get 
Post Value 

Error Handling