exh-0.1.0: A library for crawling exhentai
Safe HaskellNone
LanguageHaskell2010

Web.Exhentai.API.Gallery

Synopsis

Documentation

data GalleryInfo Source #

Information about a gallery

Instances

Instances details
Eq GalleryInfo Source # 
Instance details

Defined in Web.Exhentai.API.Gallery

Show GalleryInfo Source # 
Instance details

Defined in Web.Exhentai.API.Gallery

Generic GalleryInfo Source # 
Instance details

Defined in Web.Exhentai.API.Gallery

Associated Types

type Rep GalleryInfo :: Type -> Type #

type Rep GalleryInfo Source # 
Instance details

Defined in Web.Exhentai.API.Gallery

type Rep GalleryInfo = D1 ('MetaData "GalleryInfo" "Web.Exhentai.API.Gallery" "exh-0.1.0-inplace" 'False) (C1 ('MetaCons "GalleryInfo" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "title") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "previewLink") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "category") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GalleryCat) :*: S1 ('MetaSel ('Just "jaTitle") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "uploader") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "rating") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Float)) :*: (S1 ('MetaSel ('Just "ratingCount") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "favoriteCount") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))) :*: (((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(TagCategory, [Text])]) :*: S1 ('MetaSel ('Just "uploadTime") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime)) :*: (S1 ('MetaSel ('Just "newer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Gallery)) :*: S1 ('MetaSel ('Just "parent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Gallery)))) :*: ((S1 ('MetaSel ('Just "visibility") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Visibility) :*: S1 ('MetaSel ('Just "language") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "length") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "archiverLink") 'SourceUnpack 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

data Visibility Source #

Instances

Instances details
Eq Visibility Source # 
Instance details

Defined in Web.Exhentai.API.Gallery

Show Visibility Source # 
Instance details

Defined in Web.Exhentai.API.Gallery

Generic Visibility Source # 
Instance details

Defined in Web.Exhentai.API.Gallery

Associated Types

type Rep Visibility :: Type -> Type #

type Rep Visibility Source # 
Instance details

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))))

parseGallery :: Document -> Maybe GalleryInfo Source #

Extract all gallery informations from a document