Safe Haskell | None |
---|---|
Language | Haskell2010 |
Paddle.Client
Documentation
Constructors
API | |
Fields
|
Instances
data PaddleError Source #
Constructors
PaddleError | |
Instances
Show PaddleError Source # | |
Defined in Paddle.Client Methods showsPrec :: Int -> PaddleError -> ShowS # show :: PaddleError -> String # showList :: [PaddleError] -> ShowS # | |
Generic PaddleError Source # | |
Defined in Paddle.Client Associated Types type Rep PaddleError :: Type -> Type # | |
FromJSON PaddleError Source # | |
Defined in Paddle.Client | |
Exception PaddleError Source # | |
Defined in Paddle.Client Methods toException :: PaddleError -> SomeException # fromException :: SomeException -> Maybe PaddleError # displayException :: PaddleError -> String # | |
type Rep PaddleError Source # | |
Defined in Paddle.Client type Rep PaddleError = D1 ('MetaData "PaddleError" "Paddle.Client" "paddle-0.1.0.0-30GttVt40OR9oTLg4YUiEY" 'False) (C1 ('MetaCons "PaddleError" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
data PaddleResponse a Source #
Constructors
ResponseError PaddleError | |
ResponseSuccess a |
Instances
Show a => Show (PaddleResponse a) Source # | |
Defined in Paddle.Client Methods showsPrec :: Int -> PaddleResponse a -> ShowS # show :: PaddleResponse a -> String # showList :: [PaddleResponse a] -> ShowS # | |
FromJSON a => FromJSON (PaddleResponse a) Source # | |
Defined in Paddle.Client Methods parseJSON :: Value -> Parser (PaddleResponse a) # parseJSONList :: Value -> Parser [PaddleResponse a] # |
responseToEither :: PaddleResponse a -> Either PaddleError a Source #