Copyright | (c) 2021 Rory Tyler Hayford |
---|---|
License | BSD-3-Clause |
Maintainer | rory.hayford@protonmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data WikiPage = WikiPage {
- content :: Body
- contentHTML :: Body
- revisionBy :: Username
- revisionDate :: UTCTime
- mayRevise :: Bool
- newtype WikiRevisionID = WikiRevisionID Text
- data WikiPageName
- mkWikiPageName :: Text -> WikiPageName
- data WikiPageListing
- data WikiRevision = WikiRevision {
- revisionID :: WikiRevisionID
- page :: WikiPageName
- timestamp :: UTCTime
- author :: Username
- reason :: Maybe Text
- hidden :: Maybe Bool
- data WikiPageSettings = WikiPageSettings {}
- data WikiPermLevel
Documentation
An individual subreddit wikipage along with its revision information
WikiPage | |
|
Instances
Eq WikiPage Source # | |
Show WikiPage Source # | |
Generic WikiPage Source # | |
FromJSON WikiPage Source # | |
type Rep WikiPage Source # | |
Defined in Network.Reddit.Types.Wiki type Rep WikiPage = D1 ('MetaData "WikiPage" "Network.Reddit.Types.Wiki" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "WikiPage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Body) :*: S1 ('MetaSel ('Just "contentHTML") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Body)) :*: (S1 ('MetaSel ('Just "revisionBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Username) :*: (S1 ('MetaSel ('Just "revisionDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "mayRevise") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) |
newtype WikiRevisionID Source #
ID for a wikipage revision
Instances
data WikiPageName Source #
The name of an individual wiki page. The name forms part of the URL, and should not contain spaces or uppercase characters
Instances
mkWikiPageName :: Text -> WikiPageName Source #
Smart constructor for WikiPageName
s. Lowercases the contained text, and
replaces each space with a single underscore
data WikiPageListing Source #
Wrapper for listings of WikiPage
s, which have their own RedditKind
Instances
Show WikiPageListing Source # | |
Defined in Network.Reddit.Types.Wiki showsPrec :: Int -> WikiPageListing -> ShowS # show :: WikiPageListing -> String # showList :: [WikiPageListing] -> ShowS # | |
Generic WikiPageListing Source # | |
Defined in Network.Reddit.Types.Wiki type Rep WikiPageListing :: Type -> Type # from :: WikiPageListing -> Rep WikiPageListing x # to :: Rep WikiPageListing x -> WikiPageListing # | |
FromJSON WikiPageListing Source # | |
Defined in Network.Reddit.Types.Wiki parseJSON :: Value -> Parser WikiPageListing # parseJSONList :: Value -> Parser [WikiPageListing] # | |
type Rep WikiPageListing Source # | |
Defined in Network.Reddit.Types.Wiki type Rep WikiPageListing = D1 ('MetaData "WikiPageListing" "Network.Reddit.Types.Wiki" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'True) (C1 ('MetaCons "WikiPageListing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq WikiPageName)))) |
data WikiRevision Source #
Information regarding a single WikiPage
revision
WikiRevision | |
|
Instances
data WikiPageSettings Source #
The settings that moderators have configured for a single WikiPage
Instances
data WikiPermLevel Source #
Editing permission level configured for a single WikiPage