Safe Haskell | None |
---|---|
Language | Haskell2010 |
MPV (multi-page viewer) API.
Synopsis
- data DispatchRequest = DispatchRequest {}
- data Server
- newtype Dim = Dim Int
- buildRequest :: Effs '[Http, Error HttpException, Cookie, ConduitIO, Bracket, Throw ExhentaiError] m => Gallery -> m [DispatchRequest]
- fetchImage :: Effs '[Http, Error HttpException, Cookie, ConduitIO, Bracket, Throw ExhentaiError] m => DispatchRequest -> ContT r m (Response (ConduitT i ByteString IO ()))
Documentation
data DispatchRequest Source #
Instances
Instances
Eq Server Source # | |
Show Server Source # | |
ToJSON Server Source # | |
Defined in Web.Exhentai.API.MPV | |
FromJSON Server Source # | |
(k ~ A_Prism, a ~ Int, b ~ Int) => LabelOptic "_HAtH" k Server Server a b Source # | |
Defined in Web.Exhentai.API.MPV | |
(k ~ A_Prism, a ~ Text, b ~ Text) => LabelOptic "_Other" k Server Server a b Source # | |
Defined in Web.Exhentai.API.MPV |
buildRequest :: Effs '[Http, Error HttpException, Cookie, ConduitIO, Bracket, Throw ExhentaiError] m => Gallery -> m [DispatchRequest] Source #
Build dispatch requests for a gallery
fetchImage :: Effs '[Http, Error HttpException, Cookie, ConduitIO, Bracket, Throw ExhentaiError] m => DispatchRequest -> ContT r m (Response (ConduitT i ByteString IO ())) Source #
Fetch an image with a DispatchRequest