Safe Haskell | None |
---|---|
Language | Haskell2010 |
Web.Exhentai.API.Gallery
Synopsis
- data GalleryInfo = GalleryInfo {
- title :: Text
- previewLink :: Text
- category :: GalleryCat
- jaTitle :: Text
- uploader :: Text
- rating :: Float
- ratingCount :: Int
- favoriteCount :: Int
- tags :: [(TagCategory, [Text])]
- uploadTime :: UTCTime
- newer :: Maybe Gallery
- parent :: Maybe Gallery
- visibility :: Visibility
- language :: Text
- length :: Int
- archiverLink :: Text
- data Visibility
- fetchGalleryInfo :: MonadHttpState m => Gallery -> m GalleryInfo
- parseGallery :: Document -> Maybe GalleryInfo
Documentation
data GalleryInfo Source #
Information about a gallery
Constructors
GalleryInfo | |
Fields
|
Instances
data Visibility Source #
Instances
Eq Visibility Source # | |
Defined in Web.Exhentai.API.Gallery | |
Show Visibility Source # | |
Defined in Web.Exhentai.API.Gallery Methods showsPrec :: Int -> Visibility -> ShowS # show :: Visibility -> String # showList :: [Visibility] -> ShowS # | |
Generic Visibility Source # | |
Defined in Web.Exhentai.API.Gallery Associated Types type Rep Visibility :: Type -> Type # | |
type Rep Visibility Source # | |
Defined in Web.Exhentai.API.Gallery type Rep Visibility = D1 ('MetaData "Visibility" "Web.Exhentai.API.Gallery" "exh-0.1.0-inplace" 'False) ((C1 ('MetaCons "Visible" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Replaced" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Expunged" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Unknown" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
fetchGalleryInfo :: MonadHttpState m => Gallery -> m GalleryInfo Source #
Fetch a gallery's GalleryInfo
parseGallery :: Document -> Maybe GalleryInfo Source #
Extract all gallery informations from a document