Copyright | (c) Jon Schoning 2015 |
---|---|
Maintainer | jonschoning@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
- type PinboardEnv = (PinboardConfig, Manager)
- type PinboardT m a = ReaderT PinboardEnv (ExceptT PinboardError (LoggingT m)) a
- runPinboardT :: (MonadIO m, MonadCatch m) => PinboardEnv -> PinboardT m a -> m (Either PinboardError a)
- type MonadPinboard m = (Functor m, Applicative m, MonadIO m, MonadCatch m, MonadReader PinboardEnv m, MonadLogger m)
- type ExecLoggingT = forall m. MonadIO m => forall a. LoggingT m a -> m a
- data PinboardConfig = PinboardConfig {
- apiToken :: !ByteString
- maxRequestRateMills :: !Int
- lastRequestTime :: IORef UTCTime
- doThreadDelay :: PinboardConfig -> IO ()
- execLoggingT :: ExecLoggingT
- filterLoggingT :: LogSource -> LogLevel -> Bool
- runConfigLoggingT :: PinboardConfig -> ExecLoggingT
- data PinboardRequest = PinboardRequest {
- requestPath :: !Text
- requestParams :: [Param]
- data ResultFormatType
- data Param
- type ParamsBS = [(ByteString, ByteString)]
Documentation
type PinboardEnv = (PinboardConfig, Manager) Source #
type PinboardT m a = ReaderT PinboardEnv (ExceptT PinboardError (LoggingT m)) a Source #
runPinboardT :: (MonadIO m, MonadCatch m) => PinboardEnv -> PinboardT m a -> m (Either PinboardError a) Source #
type MonadPinboard m = (Functor m, Applicative m, MonadIO m, MonadCatch m, MonadReader PinboardEnv m, MonadLogger m) Source #
Typeclass alias for the return type of the API functions (keeps the signatures less verbose)
type ExecLoggingT = forall m. MonadIO m => forall a. LoggingT m a -> m a Source #
data PinboardConfig Source #
PinboardConfig | |
|
data PinboardRequest Source #
PinboardRequest | |
|
data ResultFormatType Source #
type ParamsBS = [(ByteString, ByteString)] Source #