heddit-0.0.1: Reddit API bindings
Copyright(c) 2021 Rory Tyler Hayford
LicenseBSD-3-Clause
Maintainerrory.hayford@protonmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Network.Reddit.Types.Wiki

Description

 
Synopsis

Documentation

data WikiPage Source #

An individual subreddit wikipage along with its revision information

Constructors

WikiPage 

Fields

Instances

Instances details
Eq WikiPage Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Show WikiPage Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Generic WikiPage Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Associated Types

type Rep WikiPage :: Type -> Type #

Methods

from :: WikiPage -> Rep WikiPage x #

to :: Rep WikiPage x -> WikiPage #

FromJSON WikiPage Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiPage Source # 
Instance details

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

Constructors

WikiRevisionID Text 

Instances

Instances details
Eq WikiRevisionID Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Show WikiRevisionID Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Generic WikiRevisionID Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Associated Types

type Rep WikiRevisionID :: Type -> Type #

FromJSON WikiRevisionID Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

ToHttpApiData WikiRevisionID Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Thing WikiRevisionID Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiRevisionID Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiRevisionID = D1 ('MetaData "WikiRevisionID" "Network.Reddit.Types.Wiki" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'True) (C1 ('MetaCons "WikiRevisionID" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

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

Instances details
Eq WikiPageName Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Show WikiPageName Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Generic WikiPageName Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Associated Types

type Rep WikiPageName :: Type -> Type #

FromJSON WikiPageName Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

ToHttpApiData WikiPageName Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiPageName Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiPageName = D1 ('MetaData "WikiPageName" "Network.Reddit.Types.Wiki" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'True) (C1 ('MetaCons "WikiPageName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

mkWikiPageName :: Text -> WikiPageName Source #

Smart constructor for WikiPageNames. Lowercases the contained text, and replaces each space with a single underscore

data WikiPageListing Source #

Wrapper for listings of WikiPages, which have their own RedditKind

Instances

Instances details
Show WikiPageListing Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Generic WikiPageListing Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Associated Types

type Rep WikiPageListing :: Type -> Type #

FromJSON WikiPageListing Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiPageListing Source # 
Instance details

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

Constructors

WikiRevision 

Fields

Instances

Instances details
Eq WikiRevision Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Show WikiRevision Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Generic WikiRevision Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Associated Types

type Rep WikiRevision :: Type -> Type #

FromJSON WikiRevision Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Paginable WikiRevision Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiRevision Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type PaginateOptions WikiRevision Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type PaginateThing WikiRevision Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

data WikiPageSettings Source #

The settings that moderators have configured for a single WikiPage

Instances

Instances details
Eq WikiPageSettings Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Show WikiPageSettings Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Generic WikiPageSettings Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Associated Types

type Rep WikiPageSettings :: Type -> Type #

FromJSON WikiPageSettings Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiPageSettings Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiPageSettings = D1 ('MetaData "WikiPageSettings" "Network.Reddit.Types.Wiki" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "WikiPageSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "permlevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WikiPermLevel) :*: (S1 ('MetaSel ('Just "listed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "allowedEditors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq Username)))))

data WikiPermLevel Source #

Editing permission level configured for a single WikiPage

Instances

Instances details
Eq WikiPermLevel Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Ord WikiPermLevel Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Show WikiPermLevel Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Generic WikiPermLevel Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

Associated Types

type Rep WikiPermLevel :: Type -> Type #

FromJSON WikiPermLevel Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

ToHttpApiData WikiPermLevel Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiPermLevel Source # 
Instance details

Defined in Network.Reddit.Types.Wiki

type Rep WikiPermLevel = D1 ('MetaData "WikiPermLevel" "Network.Reddit.Types.Wiki" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "FollowWikiSettings" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ApprovedEditorsOnly" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ModEditsOnly" 'PrefixI 'False) (U1 :: Type -> Type)))