| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Web.Exhentai.API.Auth
Synopsis
- data Credential = Credential {}
- auth :: MonadHttpState m => Credential -> m ()
Documentation
data Credential Source #
Constructors
| Credential | |
Fields
| |
Instances
| Eq Credential Source # | |
Defined in Web.Exhentai.API.Auth | |
| Show Credential Source # | |
Defined in Web.Exhentai.API.Auth Methods showsPrec :: Int -> Credential -> ShowS # show :: Credential -> String # showList :: [Credential] -> ShowS # | |
| Generic Credential Source # | |
Defined in Web.Exhentai.API.Auth Associated Types type Rep Credential :: Type -> Type # | |
| type Rep Credential Source # | |
Defined in Web.Exhentai.API.Auth type Rep Credential = D1 ('MetaData "Credential" "Web.Exhentai.API.Auth" "exh-0.2.0-inplace" 'False) (C1 ('MetaCons "Credential" 'PrefixI 'True) (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |
auth :: MonadHttpState m => Credential -> m () Source #
Authenticates and loads user preferences. This should be called before any other functions are called