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

Network.Reddit.Types.Moderation

Description

 
Synopsis

Item moderation

newtype ModItem Source #

An Item of interest to moderators (spam, modqueue, etc...)

Constructors

ModItem Item 

Instances

Instances details
Eq ModItem Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

(==) :: ModItem -> ModItem -> Bool #

(/=) :: ModItem -> ModItem -> Bool #

Show ModItem Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModItem Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModItem :: Type -> Type #

Methods

from :: ModItem -> Rep ModItem x #

to :: Rep ModItem x -> ModItem #

FromJSON ModItem Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Paginable ModItem Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModItem Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModItem = D1 ('MetaData "ModItem" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'True) (C1 ('MetaCons "ModItem" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Item)))
type PaginateOptions ModItem Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type PaginateThing ModItem Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

data ModItemOpts Source #

Options for Listings of ModItems. Only contains one field, only to constrain the request to a single type (i.e. comments or links)

Constructors

ModItemOpts 

Fields

Instances

Instances details
Eq ModItemOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModItemOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModItemOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModItemOpts :: Type -> Type #

ToForm ModItemOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

toForm :: ModItemOpts -> Form #

type Rep ModItemOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModItemOpts = D1 ('MetaData "ModItemOpts" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "ModItemOpts" 'PrefixI 'True) (S1 ('MetaSel ('Just "only") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ItemType))))

data RemovalMessage Source #

A message to explain/note the removal an Item

Instances

Instances details
Eq RemovalMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show RemovalMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic RemovalMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep RemovalMessage :: Type -> Type #

ToForm RemovalMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RemovalMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RemovalMessage = D1 ('MetaData "RemovalMessage" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "RemovalMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "itemID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ItemID) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body)) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Title) :*: S1 ('MetaSel ('Just "removalType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemovalType))))

data RemovalType Source #

Controls how the RemovalMessage will be disseminated

Constructors

PublicComment

Leaves the message as a public comment

PrivateExposed

Leaves moderator note with exposed username

PrivateHidden

Leaves mod note with hidden username

Instances

Instances details
Eq RemovalType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show RemovalType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic RemovalType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep RemovalType :: Type -> Type #

ToHttpApiData RemovalType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RemovalType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RemovalType = D1 ('MetaData "RemovalType" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "PublicComment" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PrivateExposed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PrivateHidden" 'PrefixI 'False) (U1 :: Type -> Type)))

data RemovalReason Source #

A subreddit-specific reason for item removal

Instances

Instances details
Eq RemovalReason Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show RemovalReason Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic RemovalReason Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep RemovalReason :: Type -> Type #

FromJSON RemovalReason Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToForm RemovalReason Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

toForm :: RemovalReason -> Form #

type Rep RemovalReason Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RemovalReason = D1 ('MetaData "RemovalReason" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "RemovalReason" 'PrefixI 'True) (S1 ('MetaSel ('Just "removalReasonID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemovalReasonID) :*: (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Title))))

type RemovalReasonID = Text Source #

Identifier for a RemovalReason

data RemovalReasonList Source #

Instances

Instances details
Show RemovalReasonList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic RemovalReasonList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep RemovalReasonList :: Type -> Type #

FromJSON RemovalReasonList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RemovalReasonList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RemovalReasonList = D1 ('MetaData "RemovalReasonList" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'True) (C1 ('MetaCons "RemovalReasonList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq RemovalReason))))

Subreddit relationships

data ModPermission Source #

Various permissions that can be afforded to moderators and invitees

Instances

Instances details
Bounded ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Enum ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Eq ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Ord ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModPermission :: Type -> Type #

Hashable ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

FromJSON ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

FromJSONKey ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToHttpApiData ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModPermission Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModPermission = D1 ('MetaData "ModPermission" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (((C1 ('MetaCons "Access" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Flair" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Mail" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Configuration" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ChatConfig" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatOperator" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Posts" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Wiki" 'PrefixI 'False) (U1 :: Type -> Type))))

data SubredditRelationship Source #

The types of relationships that mods can manipulate

Instances

Instances details
Eq SubredditRelationship Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show SubredditRelationship Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic SubredditRelationship Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep SubredditRelationship :: Type -> Type #

ToHttpApiData SubredditRelationship Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep SubredditRelationship Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep SubredditRelationship = D1 ('MetaData "SubredditRelationship" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) ((C1 ('MetaCons "Mod" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ModInvitation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Contributor" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "BannedFromWiki" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WikiContributor" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Banned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Muted" 'PrefixI 'False) (U1 :: Type -> Type))))

newtype RelID Source #

Uniquely identifies a subreddit relationship, excluding mutes (see MuteID)

Constructors

RelID Text 

Instances

Instances details
Eq RelID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

(==) :: RelID -> RelID -> Bool #

(/=) :: RelID -> RelID -> Bool #

Show RelID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

showsPrec :: Int -> RelID -> ShowS #

show :: RelID -> String #

showList :: [RelID] -> ShowS #

Generic RelID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep RelID :: Type -> Type #

Methods

from :: RelID -> Rep RelID x #

to :: Rep RelID x -> RelID #

FromJSON RelID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Thing RelID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

fullname :: RelID -> Text Source #

type Rep RelID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RelID = D1 ('MetaData "RelID" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'True) (C1 ('MetaCons "RelID" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype MuteID Source #

Identifies relationships representing muted users

Constructors

MuteID Text 

Instances

Instances details
Eq MuteID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

(==) :: MuteID -> MuteID -> Bool #

(/=) :: MuteID -> MuteID -> Bool #

Show MuteID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic MuteID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep MuteID :: Type -> Type #

Methods

from :: MuteID -> Rep MuteID x #

to :: Rep MuteID x -> MuteID #

FromJSON MuteID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Thing MuteID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

fullname :: MuteID -> Text Source #

type Rep MuteID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep MuteID = D1 ('MetaData "MuteID" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'True) (C1 ('MetaCons "MuteID" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data ModInvitee Source #

Information about a user who has been invited to moderate the subreddit

Constructors

ModInvitee 

Instances

Instances details
Eq ModInvitee Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModInvitee Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModInvitee Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModInvitee :: Type -> Type #

FromJSON ModInvitee Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModInvitee Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

data ModInviteeList Source #

A list containing users invited to moderate the subreddit. For some reason, the endpoints listing moderator invites do not use the same Listing mechanism that most other endpoints do

Constructors

ModInviteeList 

Fields

Instances

Instances details
Eq ModInviteeList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModInviteeList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModInviteeList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModInviteeList :: Type -> Type #

FromJSON ModInviteeList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToForm ModInviteeList Source #

This instance can be used to paginate through the listings, with a bias towards after

Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModInviteeList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModInviteeList = D1 ('MetaData "ModInviteeList" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "ModInviteeList" 'PrefixI 'True) ((S1 ('MetaSel ('Just "invited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq ModInvitee)) :*: S1 ('MetaSel ('Just "allUsersLoaded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "after") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserID)) :*: S1 ('MetaSel ('Just "before") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserID)))))

data ModList Source #

Wrapped for list of moderators, which resembles a Listing, but cannot be paginated or filtered

Instances

Instances details
Show ModList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModList :: Type -> Type #

Methods

from :: ModList -> Rep ModList x #

to :: Rep ModList x -> ModList #

FromJSON ModList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModList Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModList = D1 ('MetaData "ModList" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'True) (C1 ('MetaCons "ModList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq ModAccount))))

data ModAccount Source #

Account information about a moderator, similar to a Account, but with less information

Constructors

ModAccount 

Fields

Instances

Instances details
Eq ModAccount Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModAccount Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModAccount Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModAccount :: Type -> Type #

FromJSON ModAccount Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModAccount Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

data RelInfo Source #

Information about a contributor on the subreddit

Constructors

RelInfo 

Instances

Instances details
Eq RelInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

(==) :: RelInfo -> RelInfo -> Bool #

(/=) :: RelInfo -> RelInfo -> Bool #

Show RelInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic RelInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep RelInfo :: Type -> Type #

Methods

from :: RelInfo -> Rep RelInfo x #

to :: Rep RelInfo x -> RelInfo #

FromJSON RelInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Paginable RelInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RelInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RelInfo = D1 ('MetaData "RelInfo" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "RelInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UserID) :*: S1 ('MetaSel ('Just "relID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RelID)) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Username) :*: S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime))))
type PaginateOptions RelInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type PaginateThing RelInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

data MuteInfo Source #

Information about a muted user

Constructors

MuteInfo 

Instances

Instances details
Eq MuteInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show MuteInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic MuteInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep MuteInfo :: Type -> Type #

Methods

from :: MuteInfo -> Rep MuteInfo x #

to :: Rep MuteInfo x -> MuteInfo #

FromJSON MuteInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Paginable MuteInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep MuteInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep MuteInfo = D1 ('MetaData "MuteInfo" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "MuteInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UserID) :*: S1 ('MetaSel ('Just "muteID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MuteID)) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Username) :*: S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime))))
type PaginateOptions MuteInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type PaginateThing MuteInfo Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

data RelInfoOpts Source #

Options for Listings of RelInfo. Currently only takes a single field, user, to limit the listing to a single user

Constructors

RelInfoOpts 

Instances

Instances details
Eq RelInfoOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show RelInfoOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic RelInfoOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep RelInfoOpts :: Type -> Type #

ToForm RelInfoOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

toForm :: RelInfoOpts -> Form #

type Rep RelInfoOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep RelInfoOpts = D1 ('MetaData "RelInfoOpts" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "RelInfoOpts" 'PrefixI 'True) (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Username))))

data Ban Source #

Represents an account that has been banned from a particular subreddit

Constructors

Ban 

Fields

Instances

Instances details
Eq Ban Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

(==) :: Ban -> Ban -> Bool #

(/=) :: Ban -> Ban -> Bool #

Show Ban Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

showsPrec :: Int -> Ban -> ShowS #

show :: Ban -> String #

showList :: [Ban] -> ShowS #

Generic Ban Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep Ban :: Type -> Type #

Methods

from :: Ban -> Rep Ban x #

to :: Rep Ban x -> Ban #

FromJSON Ban Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Paginable Ban Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type PaginateOptions Ban Source #

type PaginateThing Ban Source #

type Rep Ban Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type PaginateOptions Ban Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type PaginateThing Ban Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

data BanNotes Source #

Details of a new ban to apply to a user

Constructors

BanNotes 

Fields

Instances

Instances details
Eq BanNotes Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show BanNotes Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic BanNotes Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep BanNotes :: Type -> Type #

Methods

from :: BanNotes -> Rep BanNotes x #

to :: Rep BanNotes x -> BanNotes #

ToForm BanNotes Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

toForm :: BanNotes -> Form #

type Rep BanNotes Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep BanNotes = D1 ('MetaData "BanNotes" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "BanNotes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "banMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body) :*: S1 ('MetaSel ('Just "banReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body)) :*: (S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Word)) :*: S1 ('MetaSel ('Just "note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body))))

Subreddit settings

data SubredditSettings Source #

The settings that may be configured for a particular subreddit

Constructors

SubredditSettings 

Fields

Instances

Instances details
Eq SubredditSettings Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show SubredditSettings Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic SubredditSettings Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep SubredditSettings :: Type -> Type #

FromJSON SubredditSettings Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToForm SubredditSettings Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep SubredditSettings Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep SubredditSettings = D1 ('MetaData "SubredditSettings" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "SubredditSettings" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "subredditID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubredditID) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Title)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body) :*: (S1 ('MetaSel ('Just "submitText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "submitTextLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) :*: ((S1 ('MetaSel ('Just "headerHoverText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "language") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LanguageCode)) :*: (S1 ('MetaSel ('Just "subredditType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubredditType) :*: (S1 ('MetaSel ('Just "contentOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContentOptions) :*: S1 ('MetaSel ('Just "keyColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RGBText))))) :*: (((S1 ('MetaSel ('Just "wikimode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Wikimode) :*: S1 ('MetaSel ('Just "wikiEditKarma") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer)) :*: (S1 ('MetaSel ('Just "wikiEditAge") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: (S1 ('MetaSel ('Just "commentScoreHideMins") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: S1 ('MetaSel ('Just "spamComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SpamFilter)))) :*: ((S1 ('MetaSel ('Just "spamSelfposts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SpamFilter) :*: S1 ('MetaSel ('Just "spamLinks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SpamFilter)) :*: (S1 ('MetaSel ('Just "crowdControlLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CrowdControlLevel) :*: (S1 ('MetaSel ('Just "crowdControlChatLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CrowdControlLevel) :*: S1 ('MetaSel ('Just "crowdControlMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))) :*: ((((S1 ('MetaSel ('Just "suggestedCommentSort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ItemSort)) :*: S1 ('MetaSel ('Just "welcomeMessageText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "welcomeMessageEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "allowImages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "allowVideos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "allowPolls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "allowCrossposts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "allowChatPostCreation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "spoilersEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "showMedia") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))) :*: (((S1 ('MetaSel ('Just "showMediaPreview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "restrictPosting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "restrictCommenting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "over18") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "collapseDeletedComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "defaultSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "disableContribRequests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "freeFormReports") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "excludeBannedModqueue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "ocTagEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "allOC") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))))))

data CrowdControlLevel Source #

The setting for crowd controls, from lenient to strict

Constructors

Zero 
One 
Two 
Three 

Instances

Instances details
Enum CrowdControlLevel Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Eq CrowdControlLevel Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Ord CrowdControlLevel Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show CrowdControlLevel Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic CrowdControlLevel Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep CrowdControlLevel :: Type -> Type #

FromJSON CrowdControlLevel Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToHttpApiData CrowdControlLevel Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep CrowdControlLevel Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep CrowdControlLevel = D1 ('MetaData "CrowdControlLevel" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) ((C1 ('MetaCons "Zero" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "One" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Two" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Three" 'PrefixI 'False) (U1 :: Type -> Type)))

data SubredditType Source #

The privacy level for the subreddit

Instances

Instances details
Eq SubredditType Source # 
Instance details

Defined in Network.Reddit.Types.Internal

Show SubredditType Source # 
Instance details

Defined in Network.Reddit.Types.Internal

Generic SubredditType Source # 
Instance details

Defined in Network.Reddit.Types.Internal

Associated Types

type Rep SubredditType :: Type -> Type #

FromJSON SubredditType Source # 
Instance details

Defined in Network.Reddit.Types.Internal

ToHttpApiData SubredditType Source # 
Instance details

Defined in Network.Reddit.Types.Internal

type Rep SubredditType Source # 
Instance details

Defined in Network.Reddit.Types.Internal

type Rep SubredditType = D1 ('MetaData "SubredditType" "Network.Reddit.Types.Internal" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (((C1 ('MetaCons "Public" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Restricted" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Private" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Archived" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "GoldRestricted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EmployeesOnly" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GoldOnly" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserSubreddit" 'PrefixI 'False) (U1 :: Type -> Type))))

data SpamFilter Source #

The strength of the subreddit's spam filter

Instances

Instances details
Eq SpamFilter Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show SpamFilter Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic SpamFilter Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep SpamFilter :: Type -> Type #

FromJSON SpamFilter Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToHttpApiData SpamFilter Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep SpamFilter Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep SpamFilter = D1 ('MetaData "SpamFilter" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "LowFilter" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "HighFilter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllFilter" 'PrefixI 'False) (U1 :: Type -> Type)))

data Wikimode Source #

The editing mode for a subreddit's wiki

Constructors

EditDisabled

Only mods can edit

ApprovedEdit

Only mods and approved editors can edit

ContributorEdit

Any sub contributor can edit

Instances

Instances details
Eq Wikimode Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Ord Wikimode Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show Wikimode Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic Wikimode Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep Wikimode :: Type -> Type #

Methods

from :: Wikimode -> Rep Wikimode x #

to :: Rep Wikimode x -> Wikimode #

FromJSON Wikimode Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToHttpApiData Wikimode Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep Wikimode Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep Wikimode = D1 ('MetaData "Wikimode" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "EditDisabled" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ApprovedEdit" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ContributorEdit" 'PrefixI 'False) (U1 :: Type -> Type)))

data ContentOptions Source #

Permissible submissions on the subreddit

Constructors

AnyContent 
LinkOnly 
SelfOnly 

Instances

Instances details
Eq ContentOptions Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ContentOptions Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ContentOptions Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ContentOptions :: Type -> Type #

FromJSON ContentOptions Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToHttpApiData ContentOptions Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ContentOptions Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ContentOptions = D1 ('MetaData "ContentOptions" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "AnyContent" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LinkOnly" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SelfOnly" 'PrefixI 'False) (U1 :: Type -> Type)))

Modmail

newtype Modmail Source #

Moderator mail. Reddit no longer supports the older, message-based interface for modmail

Instances

Instances details
Eq Modmail Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

(==) :: Modmail -> Modmail -> Bool #

(/=) :: Modmail -> Modmail -> Bool #

Show Modmail Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic Modmail Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep Modmail :: Type -> Type #

Methods

from :: Modmail -> Rep Modmail x #

to :: Rep Modmail x -> Modmail #

FromJSON Modmail Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep Modmail Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep Modmail = D1 ('MetaData "Modmail" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'True) (C1 ('MetaCons "Modmail" 'PrefixI 'True) (S1 ('MetaSel ('Just "conversations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq ModmailConversation))))

data ModmailConversation Source #

A single modmail conversation

Constructors

ModmailConversation 

Fields

Instances

Instances details
Eq ModmailConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModmailConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModmailConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModmailConversation :: Type -> Type #

FromJSON ModmailConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailConversation = D1 ('MetaData "ModmailConversation" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "ModmailConversation" 'PrefixI 'True) (((S1 ('MetaSel ('Just "modmailID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ModmailID) :*: (S1 ('MetaSel ('Just "subject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Subject) :*: S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq ModmailMessage)))) :*: (S1 ('MetaSel ('Just "numMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: (S1 ('MetaSel ('Just "subreddit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubredditName) :*: S1 ('MetaSel ('Just "participant") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ModmailAuthor))))) :*: ((S1 ('MetaSel ('Just "objIDs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq ModmailObjID)) :*: (S1 ('MetaSel ('Just "lastUpdated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "lastUserUpdate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UTCTime)))) :*: (S1 ('MetaSel ('Just "lastModUpdate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UTCTime)) :*: (S1 ('MetaSel ('Just "isHighlighted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "isInternal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))))

data ModmailMessage Source #

A single message in a ModmailConversation

Instances

Instances details
Eq ModmailMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModmailMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModmailMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModmailMessage :: Type -> Type #

FromJSON ModmailMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailMessage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type ModmailID = Text Source #

The ID of a particular modmail conversation

data BulkReadIDs Source #

Instances

Instances details
Show BulkReadIDs Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic BulkReadIDs Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep BulkReadIDs :: Type -> Type #

FromJSON BulkReadIDs Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep BulkReadIDs Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep BulkReadIDs = D1 ('MetaData "BulkReadIDs" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'True) (C1 ('MetaCons "BulkReadIDs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq ModmailID))))

data ModmailAuthor Source #

An author in a ModmailConversation; can be either a mod or a non-mod user

Instances

Instances details
Eq ModmailAuthor Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModmailAuthor Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModmailAuthor Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModmailAuthor :: Type -> Type #

FromJSON ModmailAuthor Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailAuthor Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

data ModmailObjID Source #

A mapping to a modmail action to its ID

Constructors

ModmailObjID 

Fields

Instances

Instances details
Eq ModmailObjID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModmailObjID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModmailObjID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModmailObjID :: Type -> Type #

FromJSON ModmailObjID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailObjID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailObjID = D1 ('MetaData "ModmailObjID" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "ModmailObjID" 'PrefixI 'True) (S1 ('MetaSel ('Just "objID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

data ModmailState Source #

The state of the modmail, for use when filtering mail

Instances

Instances details
Eq ModmailState Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModmailState Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModmailState Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModmailState :: Type -> Type #

Hashable ModmailState Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

FromJSON ModmailState Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

FromJSONKey ModmailState Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToHttpApiData ModmailState Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailState Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailState = D1 ('MetaData "ModmailState" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (((C1 ('MetaCons "AllModmail" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NewModmail" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Appeals" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Notifications" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Inbox" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "InProgress" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ArchivedMail" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Highlighted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "JoinRequests" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ModModmail" 'PrefixI 'False) (U1 :: Type -> Type)))))

data ModmailSort Source #

Order to sort modmail in

Instances

Instances details
Eq ModmailSort Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModmailSort Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModmailSort Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModmailSort :: Type -> Type #

ToHttpApiData ModmailSort Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailSort Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailSort = D1 ('MetaData "ModmailSort" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) ((C1 ('MetaCons "FromUser" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FromMod" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "RecentMail" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnreadMail" 'PrefixI 'False) (U1 :: Type -> Type)))

data ModmailOpts Source #

Options for filtering/paginating modmail endpoints. Notably, this is an entirely different mechanism than the usual Listings elsewhere on Reddit

Constructors

ModmailOpts 

Fields

Instances

Instances details
Eq ModmailOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModmailOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModmailOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModmailOpts :: Type -> Type #

ToForm ModmailOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

toForm :: ModmailOpts -> Form #

type Rep ModmailOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

defaultModmailOpts :: ModmailOpts Source #

Default options for filtering modmail

data ConversationDetails Source #

Wrapper for parsing the JSON returned from the conversation details API endpoint. This is formatted differently and has different fields than the modmail overview endpoint

data ModmailReply Source #

A new reply to a ModmailConversation

Constructors

ModmailReply 

Fields

  • body :: Body

    Markdown-formatted body

  • isAuthorHidden :: Bool

    Hides the identity of the reply author from non-mods

  • isInternal :: Bool

    Indicates that this is a private moderator note, and thus hides it from non-mod users

Instances

Instances details
Eq ModmailReply Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModmailReply Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModmailReply Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModmailReply :: Type -> Type #

ToForm ModmailReply Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

toForm :: ModmailReply -> Form #

type Rep ModmailReply Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModmailReply = D1 ('MetaData "ModmailReply" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "ModmailReply" 'PrefixI 'True) (S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body) :*: (S1 ('MetaSel ('Just "isAuthorHidden") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "isInternal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

mkModmailReply :: Body -> ModmailReply Source #

ModmailReply with default values for boolean fields

data NewConversation Source #

A new, mod-created modmail conversation

Constructors

NewConversation 

Fields

Instances

Instances details
Eq NewConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show NewConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic NewConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep NewConversation :: Type -> Type #

ToForm NewConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep NewConversation Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Modlog

data ModAction Source #

An action issued by a moderator. The various fields prefixed target can refer to comments or submissions, where applicable

Instances

Instances details
Eq ModAction Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModAction Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModAction Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModAction :: Type -> Type #

FromJSON ModAction Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Paginable ModAction Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModAction Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type PaginateOptions ModAction Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type PaginateThing ModAction Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

data ModActionID Source #

Identifier for an issued ModAction

Instances

Instances details
Eq ModActionID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModActionID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModActionID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModActionID :: Type -> Type #

FromJSON ModActionID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToHttpApiData ModActionID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Thing ModActionID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModActionID Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModActionID = D1 ('MetaData "ModActionID" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'True) (C1 ('MetaCons "ModActionID" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data ModActionType Source #

Classification for ModActions

Instances

Instances details
Eq ModActionType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Ord ModActionType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModActionType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModActionType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModActionType :: Type -> Type #

FromJSON ModActionType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

ToHttpApiData ModActionType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModActionType Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModActionType = D1 ('MetaData "ModActionType" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (((((C1 ('MetaCons "BanUser" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnbanUser" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SpamLink" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "RemoveLink" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ApproveLink" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SpamComment" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "RemoveComment" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ApproveComment" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AddModerator" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ShowComment" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InviteModerator" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UninviteModerator" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AcceptModeratorInvite" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "RemoveModerator" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AddContributor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RemoveContributor" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "EditSettings" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EditFlair" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Distinguish" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MarkNSFW" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "WikiBanned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WikiContrib" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WikiUnbanned" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "WikiPageListed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RemoveWikiContributor" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "WikiRevise" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WikiPermLevel" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "IgnoreReports" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnignoreReports" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SetPermissions" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "SetSuggestedSort" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Sticky" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Unsticky" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "SetContestMode" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnsetContestMode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Lock" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Unlock" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MuteUser" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UnmuteUser" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CreateRule" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "EditRule" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ReorderRules" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeleteRule" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Spoiler" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Unspoiler" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MarkOriginalContent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Collections" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Events" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DeleteOverriddenClassification" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OverrideClassification" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ReorderModerators" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SnoozeReports" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UnsnoozeReports" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OtherModAction" 'PrefixI 'False) (U1 :: Type -> Type)))))))

data ModActionOpts Source #

Options for filtering/paginating Listings of ModActions

Constructors

ModActionOpts 

Fields

Instances

Instances details
Eq ModActionOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show ModActionOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic ModActionOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep ModActionOpts :: Type -> Type #

type Rep ModActionOpts Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep ModActionOpts = D1 ('MetaData "ModActionOpts" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "ModActionOpts" 'PrefixI 'True) (S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ModActionType)) :*: S1 ('MetaSel ('Just "moderator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Username))))

Styles and images

data Stylesheet Source #

The CSS stylesheet and images for a subreddit

Instances

Instances details
Eq Stylesheet Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show Stylesheet Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic Stylesheet Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep Stylesheet :: Type -> Type #

FromJSON Stylesheet Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep Stylesheet Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep Stylesheet = D1 ('MetaData "Stylesheet" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "Stylesheet" 'PrefixI 'True) (S1 ('MetaSel ('Just "stylesheet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "images") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq SubredditImage)) :*: S1 ('MetaSel ('Just "subredditID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubredditID))))

data SubredditImage Source #

An image belonging to a Stylesheet

Constructors

SubredditImage 

Fields

data S3ModerationLease Source #

Used to upload style assets and images to Reddit's servers with moderator privileges

Constructors

S3ModerationLease 

Fields

Instances

Instances details
Eq S3ModerationLease Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show S3ModerationLease Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic S3ModerationLease Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep S3ModerationLease :: Type -> Type #

FromJSON S3ModerationLease Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep S3ModerationLease Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep S3ModerationLease = D1 ('MetaData "S3ModerationLease" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "S3ModerationLease" 'PrefixI 'True) ((S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 URL) :*: S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "websocketURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 URL))))

data StructuredStyleImage Source #

Represents one of the style images that may be uploaded

Instances

Instances details
Eq StructuredStyleImage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show StructuredStyleImage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic StructuredStyleImage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep StructuredStyleImage :: Type -> Type #

ToHttpApiData StructuredStyleImage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep StructuredStyleImage Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep StructuredStyleImage = D1 ('MetaData "StructuredStyleImage" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "BannerBackground" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BannerAdditional" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BannerHover" 'PrefixI 'False) (U1 :: Type -> Type)))

data StyleImageAlignment Source #

Alignment for certain StructuredStyleImages

Instances

Instances details
Eq StyleImageAlignment Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show StyleImageAlignment Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic StyleImageAlignment Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep StyleImageAlignment :: Type -> Type #

ToHttpApiData StyleImageAlignment Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep StyleImageAlignment Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep StyleImageAlignment = D1 ('MetaData "StyleImageAlignment" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "LeftAligned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CenterAligned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RightAligned" 'PrefixI 'False) (U1 :: Type -> Type)))

Misc

data TrafficStat Source #

An individual statistic for a subreddit's traffic

Constructors

TrafficStat 

Fields

Instances

Instances details
Eq TrafficStat Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Show TrafficStat Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic TrafficStat Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep TrafficStat :: Type -> Type #

FromJSON TrafficStat Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep TrafficStat Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep TrafficStat = D1 ('MetaData "TrafficStat" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "TrafficStat" 'PrefixI 'True) ((S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "uniqueViews") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer)) :*: (S1 ('MetaSel ('Just "totalViews") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: S1 ('MetaSel ('Just "subscribers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))))

data Traffic Source #

Traffic statistics for a given subreddit

Constructors

Traffic 

Fields

Instances

Instances details
Eq Traffic Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Methods

(==) :: Traffic -> Traffic -> Bool #

(/=) :: Traffic -> Traffic -> Bool #

Show Traffic Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Generic Traffic Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

Associated Types

type Rep Traffic :: Type -> Type #

Methods

from :: Traffic -> Rep Traffic x #

to :: Rep Traffic x -> Traffic #

FromJSON Traffic Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep Traffic Source # 
Instance details

Defined in Network.Reddit.Types.Moderation

type Rep Traffic = D1 ('MetaData "Traffic" "Network.Reddit.Types.Moderation" "heddit-0.2-6CPbqZeiNUj1PM6nX368ZU" 'False) (C1 ('MetaCons "Traffic" 'PrefixI 'True) (S1 ('MetaSel ('Just "hour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq TrafficStat)) :*: (S1 ('MetaSel ('Just "day") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq TrafficStat)) :*: S1 ('MetaSel ('Just "month") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq TrafficStat)))))

data LanguageCode where Source #

The language in which the subreddit is available, as configured in the SubredditSettings

Bundled Patterns

pattern AF :: LanguageCode 
pattern AR :: LanguageCode 
pattern BE :: LanguageCode 
pattern BG :: LanguageCode 
pattern BS :: LanguageCode 
pattern CA :: LanguageCode 
pattern CS :: LanguageCode 
pattern CY :: LanguageCode 
pattern DA :: LanguageCode 
pattern DE :: LanguageCode 
pattern EL :: LanguageCode 
pattern EN :: LanguageCode 
pattern EO :: LanguageCode 
pattern ES :: LanguageCode 
pattern ET :: LanguageCode 
pattern EU :: LanguageCode 
pattern FA :: LanguageCode 
pattern FI :: LanguageCode 
pattern FR :: LanguageCode 
pattern GD :: LanguageCode 
pattern GL :: LanguageCode 
pattern HE :: LanguageCode 
pattern HI :: LanguageCode 
pattern HR :: LanguageCode 
pattern HU :: LanguageCode 
pattern HY :: LanguageCode 
pattern ID :: LanguageCode 
pattern IS :: LanguageCode 
pattern IT :: LanguageCode 
pattern JA :: LanguageCode 
pattern KO :: LanguageCode 
pattern LA :: LanguageCode 
pattern LT :: LanguageCode 
pattern LV :: LanguageCode 
pattern MS :: LanguageCode 
pattern NL :: LanguageCode 
pattern NN :: LanguageCode 
pattern NO :: LanguageCode 
pattern PL :: LanguageCode 
pattern PT :: LanguageCode 
pattern RO :: LanguageCode 
pattern RU :: LanguageCode 
pattern SK :: LanguageCode 
pattern SL :: LanguageCode 
pattern SR :: LanguageCode 
pattern SV :: LanguageCode 
pattern TA :: LanguageCode 
pattern TH :: LanguageCode 
pattern TR :: LanguageCode 
pattern UK :: LanguageCode 
pattern VI :: LanguageCode 
pattern ZH :: LanguageCode