Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Http :: Effect
- formRequest :: Effs '[Http, Error HttpException] m => String -> m Request
- genBoundary :: Eff Http m => m ByteString
- respOpen :: Effs '[Http, Error HttpException] m => Request -> m (Response BodyReader)
- respClose :: Eff Http m => Response a -> m ()
- data ConduitIO :: Effect where
- RunConduitIO :: ConduitT () Void IO a -> ConduitIO m a
- runConduitIO :: Eff ConduitIO m => ConduitT () Void IO a -> m a
- data Cookie :: Effect where
- TakeCookie :: Cookie m CookieJar
- ReadCookie :: Cookie m CookieJar
- PutCookie :: CookieJar -> Cookie m ()
- takeCookie :: Eff Cookie m => m CookieJar
- readCookie :: Eff Cookie m => m CookieJar
- putCookie :: Eff Cookie m => CookieJar -> m ()
- type ExhC = CompositionC '[HttpToIOC, ConduitIOToIOC, CookieToIOC]
- exhToIO :: (Effs '[Embed IO, Reader Manager] m, Threaders '[ReaderThreads] m p) => ExhC m a -> m a
- data HttpH
- type HttpToIOC = InterpretC HttpH Http
- httpToIO :: (Effs '[Embed IO, Reader Manager] m, Threaders '[ReaderThreads] m p) => HttpToIOC m a -> m a
- data CookieH
- type CookieToIOC = CompositionC '[CookieToReaderC, ReaderC (MVar CookieJar)]
- cookieToIO :: (Eff (Embed IO) m, Threaders '[ReaderThreads] m p) => CookieToIOC m a -> m a
- data ConduitIOH
- type ConduitIOToIOC = InterpretC ConduitIOH ConduitIO
- conduitIOToIO :: Eff (Embed IO) m => ConduitIOToIOC m a -> m a
- module Web.Exhentai.API.Auth
- module Web.Exhentai.API.Gallery
- module Web.Exhentai.API.MPV
- module Web.Exhentai.API.Search
- module Web.Exhentai.API.Watched
- module Web.Exhentai.API.Archiver
- data ExhentaiError
Effects and effect interpreters
Important
Instances
Effs '[Embed IO, Reader Manager] m => Handler HttpH Http m Source # | |
Defined in Control.Effect.Exh effHandler :: EffHandler Http m # |
formRequest :: Effs '[Http, Error HttpException] m => String -> m Request Source #
genBoundary :: Eff Http m => m ByteString Source #
respOpen :: Effs '[Http, Error HttpException] m => Request -> m (Response BodyReader) Source #
data ConduitIO :: Effect where Source #
RunConduitIO :: ConduitT () Void IO a -> ConduitIO m a |
Instances
Eff (Embed IO) m => Handler ConduitIOH ConduitIO m Source # | |
Defined in Control.Effect.Exh effHandler :: EffHandler ConduitIO m # |
data Cookie :: Effect where Source #
TakeCookie :: Cookie m CookieJar | |
ReadCookie :: Cookie m CookieJar | |
PutCookie :: CookieJar -> Cookie m () |
type ExhC = CompositionC '[HttpToIOC, ConduitIOToIOC, CookieToIOC] Source #
exhToIO :: (Effs '[Embed IO, Reader Manager] m, Threaders '[ReaderThreads] m p) => ExhC m a -> m a Source #
Unimportant
Instances
Effs '[Embed IO, Reader Manager] m => Handler HttpH Http m Source # | |
Defined in Control.Effect.Exh effHandler :: EffHandler Http m # |
httpToIO :: (Effs '[Embed IO, Reader Manager] m, Threaders '[ReaderThreads] m p) => HttpToIOC m a -> m a Source #
type CookieToIOC = CompositionC '[CookieToReaderC, ReaderC (MVar CookieJar)] Source #
cookieToIO :: (Eff (Embed IO) m, Threaders '[ReaderThreads] m p) => CookieToIOC m a -> m a Source #
data ConduitIOH Source #
Instances
Eff (Embed IO) m => Handler ConduitIOH ConduitIO m Source # | |
Defined in Control.Effect.Exh effHandler :: EffHandler ConduitIO m # |
conduitIOToIO :: Eff (Embed IO) m => ConduitIOToIOC m a -> m a Source #
API
Authentication
module Web.Exhentai.API.Auth
Getting information about galleries
module Web.Exhentai.API.Gallery
Fetching images from galleries
module Web.Exhentai.API.MPV
Searching galleries
module Web.Exhentai.API.Search
Getting popular and watched galleries
module Web.Exhentai.API.Watched
Fetching archives
module Web.Exhentai.API.Archiver
Errors
data ExhentaiError Source #
Instances
Eq ExhentaiError Source # | |
Defined in Web.Exhentai.Errors (==) :: ExhentaiError -> ExhentaiError -> Bool # (/=) :: ExhentaiError -> ExhentaiError -> Bool # | |
Show ExhentaiError Source # | |
Defined in Web.Exhentai.Errors showsPrec :: Int -> ExhentaiError -> ShowS # show :: ExhentaiError -> String # showList :: [ExhentaiError] -> ShowS # | |
Exception ExhentaiError Source # | |
Defined in Web.Exhentai.Errors |