| Copyright | (c) Jon Schoning, 2015 |
|---|---|
| Maintainer | jonschoning@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Pinboard.Client.Types
Description
- type PinboardEnv = (PinboardConfig, Manager)
- type PinboardT m a = ReaderT PinboardEnv (ExceptT PinboardError m) a
- runPinboardT :: PinboardEnv -> PinboardT m a -> m (Either PinboardError a)
- type MonadPinboard m = (MonadIO m, MonadReader PinboardEnv m, MonadError PinboardError m)
- data PinboardRequest = PinboardRequest {
- requestPath :: Text
- requestParams :: [Param]
- data PinboardConfig = PinboardConfig {
- apiToken :: ByteString
- debug :: Bool
- data ResultFormatType
- data Param
- type ParamsBS = [(ByteString, ByteString)]
Documentation
type PinboardEnv = (PinboardConfig, Manager) Source
type PinboardT m a = ReaderT PinboardEnv (ExceptT PinboardError m) a Source
runPinboardT :: PinboardEnv -> PinboardT m a -> m (Either PinboardError a) Source
type MonadPinboard m = (MonadIO m, MonadReader PinboardEnv m, MonadError PinboardError m) Source
Typeclass alias for the return type of the API functions (keeps the signatures less verbose)
data PinboardRequest Source
Constructors
| PinboardRequest | |
Fields
| |
Instances
data PinboardConfig Source
Constructors
| PinboardConfig | |
Fields
| |
Instances
type ParamsBS = [(ByteString, ByteString)] Source