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.Account

Description

 
Synopsis

Documentation

data Username Source #

Reddit username

Instances

Instances details
Eq Username Source # 
Instance details

Defined in Network.Reddit.Types.Account

Show Username Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic Username Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep Username :: Type -> Type #

Methods

from :: Username -> Rep Username x #

to :: Rep Username x -> Username #

ToJSON Username Source # 
Instance details

Defined in Network.Reddit.Types.Account

FromJSON Username Source # 
Instance details

Defined in Network.Reddit.Types.Account

ToHttpApiData Username Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Username Source # 
Instance details

Defined in Network.Reddit.Types.Account

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

mkUsername :: MonadThrow m => Text -> m Username Source #

Smart constructor for Username, which must be between 3 and 20 chars, and may only include upper/lowercase alphanumeric chars, underscores, or hyphens

newtype UserID Source #

A unique, site-wide ID for an account

Constructors

UserID Text 

Instances

Instances details
Eq UserID Source # 
Instance details

Defined in Network.Reddit.Types.Account

Methods

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

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

Show UserID Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic UserID Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep UserID :: Type -> Type #

Methods

from :: UserID -> Rep UserID x #

to :: Rep UserID x -> UserID #

FromJSON UserID Source # 
Instance details

Defined in Network.Reddit.Types.Account

Thing UserID Source # 
Instance details

Defined in Network.Reddit.Types.Account

Methods

fullname :: UserID -> Text Source #

type Rep UserID Source # 
Instance details

Defined in Network.Reddit.Types.Account

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

data Account Source #

Account information. Maybe fields denote data that Reddit sets to null if the requester does not own the account in question. Note that this does not include all of the possible fields that may be present in Reddit's response - which are quite numerous in total and poorly documented

Instances

Instances details
Show Account Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic Account Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep Account :: Type -> Type #

Methods

from :: Account -> Rep Account x #

to :: Rep Account x -> Account #

FromJSON Account Source # 
Instance details

Defined in Network.Reddit.Types.Account

Paginable Account Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Account Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Account = D1 ('MetaData "Account" "Network.Reddit.Types.Account" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "Account" 'PrefixI 'True) (((S1 ('MetaSel ('Just "userID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UserID) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Username) :*: S1 ('MetaSel ('Just "created") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime))) :*: (S1 ('MetaSel ('Just "commentKarma") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "isGold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "isMod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "linkKarma") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "inboxCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "modHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "over18") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "hasMail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "hasModMail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "hasVerifiedEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))))))
type PaginateOptions Account Source # 
Instance details

Defined in Network.Reddit.Types.Account

type PaginateThing Account Source # 
Instance details

Defined in Network.Reddit.Types.Account

data AccountSearchOpts Source #

Options for search Listings of Accounts

Constructors

AccountSearchOpts 

Fields

Instances

Instances details
Eq AccountSearchOpts Source # 
Instance details

Defined in Network.Reddit.Types.Account

Show AccountSearchOpts Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic AccountSearchOpts Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep AccountSearchOpts :: Type -> Type #

ToForm AccountSearchOpts Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep AccountSearchOpts Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep AccountSearchOpts = D1 ('MetaData "AccountSearchOpts" "Network.Reddit.Types.Account" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "AccountSearchOpts" 'PrefixI 'True) (S1 ('MetaSel ('Just "resultSort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccountSearchSort) :*: (S1 ('MetaSel ('Just "typeaheadActive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "searchQueryID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

data AccountSearchSort Source #

The item sort for Account searches

Instances

Instances details
Eq AccountSearchSort Source # 
Instance details

Defined in Network.Reddit.Types.Account

Show AccountSearchSort Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic AccountSearchSort Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep AccountSearchSort :: Type -> Type #

ToHttpApiData AccountSearchSort Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep AccountSearchSort Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep AccountSearchSort = D1 ('MetaData "AccountSearchSort" "Network.Reddit.Types.Account" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "RelevantAccounts" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ActiveAccounts" 'PrefixI 'False) (U1 :: Type -> Type))

data Friend Source #

A user's friend

Constructors

Friend 

Instances

Instances details
Eq Friend Source # 
Instance details

Defined in Network.Reddit.Types.Account

Methods

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

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

Show Friend Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic Friend Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep Friend :: Type -> Type #

Methods

from :: Friend -> Rep Friend x #

to :: Rep Friend x -> Friend #

FromJSON Friend Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Friend Source # 
Instance details

Defined in Network.Reddit.Types.Account

data FriendList Source #

Wrapper for parsing JSON objects listing Friends

Instances

Instances details
Show FriendList Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic FriendList Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep FriendList :: Type -> Type #

FromJSON FriendList Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep FriendList Source # 
Instance details

Defined in Network.Reddit.Types.Account

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

data Karma Source #

Information about a user's karma

Instances

Instances details
Eq Karma Source # 
Instance details

Defined in Network.Reddit.Types.Account

Methods

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

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

Show Karma Source # 
Instance details

Defined in Network.Reddit.Types.Account

Methods

showsPrec :: Int -> Karma -> ShowS #

show :: Karma -> String #

showList :: [Karma] -> ShowS #

Generic Karma Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep Karma :: Type -> Type #

Methods

from :: Karma -> Rep Karma x #

to :: Rep Karma x -> Karma #

FromJSON Karma Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Karma Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Karma = D1 ('MetaData "Karma" "Network.Reddit.Types.Account" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "Karma" 'PrefixI 'True) (S1 ('MetaSel ('Just "subreddit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubredditName) :*: (S1 ('MetaSel ('Just "commentKarma") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: S1 ('MetaSel ('Just "linkKarma") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer))))

data KarmaList Source #

Wrapper for parsing JSON array of Karma

Instances

Instances details
Show KarmaList Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic KarmaList Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep KarmaList :: Type -> Type #

FromJSON KarmaList Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep KarmaList Source # 
Instance details

Defined in Network.Reddit.Types.Account

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

data Trophy Source #

A Reddit award, such as the "one-year club"

Instances

Instances details
Eq Trophy Source # 
Instance details

Defined in Network.Reddit.Types.Account

Methods

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

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

Show Trophy Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic Trophy Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep Trophy :: Type -> Type #

Methods

from :: Trophy -> Rep Trophy x #

to :: Rep Trophy x -> Trophy #

FromJSON Trophy Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Trophy Source # 
Instance details

Defined in Network.Reddit.Types.Account

data TrophyList Source #

Wrapper for parsing JSON objects listing Trophys

Instances

Instances details
Show TrophyList Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic TrophyList Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep TrophyList :: Type -> Type #

FromJSON TrophyList Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep TrophyList Source # 
Instance details

Defined in Network.Reddit.Types.Account

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

data UserSummary Source #

A brief summary of a user, with significantly less information than a Account

Constructors

UserSummary 

Fields

Instances

Instances details
Eq UserSummary Source # 
Instance details

Defined in Network.Reddit.Types.Account

Show UserSummary Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic UserSummary Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep UserSummary :: Type -> Type #

FromJSON UserSummary Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep UserSummary Source # 
Instance details

Defined in Network.Reddit.Types.Account

data UserSummaryList Source #

Wrapper for parsing a JSON object of UserSummarys which has user IDs as keys

Instances

Instances details
Show UserSummaryList Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic UserSummaryList Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep UserSummaryList :: Type -> Type #

FromJSON UserSummaryList Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep UserSummaryList Source # 
Instance details

Defined in Network.Reddit.Types.Account

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

data Preferences Source #

User preferences

Constructors

Preferences 

Fields

Instances

Instances details
Eq Preferences Source # 
Instance details

Defined in Network.Reddit.Types.Account

Show Preferences Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic Preferences Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep Preferences :: Type -> Type #

ToJSON Preferences Source # 
Instance details

Defined in Network.Reddit.Types.Account

FromJSON Preferences Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Preferences Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep Preferences = D1 ('MetaData "Preferences" "Network.Reddit.Types.Account" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "Preferences" 'PrefixI 'True) ((((((S1 ('MetaSel ('Just "defaultCommentSort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ItemSort) :*: S1 ('MetaSel ('Just "media") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MediaPreference)) :*: (S1 ('MetaSel ('Just "mediaPreview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MediaPreference) :*: S1 ('MetaSel ('Just "minCommentScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "minLinkScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "numComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "numSites") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "lang") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "acceptPMs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AcceptPMs))))) :*: (((S1 ('MetaSel ('Just "activityRelevantAds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "allowClicktracking") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "beta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "clickGadget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "collapseReadMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "compress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "credditAutorenew") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "domainDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "emailChatRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))) :*: ((((S1 ('MetaSel ('Just "emailCommentReply") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "emailDigests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "emailMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "emailPostReply") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "emailPrivateMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "emailUnsubscribeAll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "emailUpvoteComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "emailUpvotePost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "emailUserNewFollower") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))) :*: (((S1 ('MetaSel ('Just "emailUsernameMention") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "enableDefaultThemes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "feedRecommendationsEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "hideAds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "hideDowns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "hideFromRobots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "hideUps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "highlightControversial") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "highlightNewComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "ignoreSuggestedSort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))))) :*: (((((S1 ('MetaSel ('Just "inRedesignBeta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "labelNSFW") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "legacySearch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "liveOrangereds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "markMessagesRead") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "monitorMentions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "newWindow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "nightMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "noProfanity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))) :*: (((S1 ('MetaSel ('Just "organic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "over18") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "privateFeeds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "profileOptOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "publicVotes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "research") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "searchIncludeOver18") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "sendCrosspostMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "sendWelcomeMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))) :*: ((((S1 ('MetaSel ('Just "showFlair") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "showGoldExpiration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "showLinkFlair") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "showLocationBasedRecommendations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "showPresence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "showPromote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "showStylesheets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "showTrending") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "showTwitter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))) :*: (((S1 ('MetaSel ('Just "storeVisits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "thirdPartyDataPersonalizedAds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "thirdPartyPersonalizedAds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "thirdPartySiteDataPersonalizedAds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "thirdPartySiteDataPersonalizedContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "threadedMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "threadedModmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "topKarmaSubreddits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "useGlobalDefaults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "videoAutoplay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))))))

data MediaPreference Source #

How to deal with media previews and thumbnails in your Preferences

Instances

Instances details
Eq MediaPreference Source # 
Instance details

Defined in Network.Reddit.Types.Account

Show MediaPreference Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic MediaPreference Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep MediaPreference :: Type -> Type #

ToJSON MediaPreference Source # 
Instance details

Defined in Network.Reddit.Types.Account

FromJSON MediaPreference Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep MediaPreference Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep MediaPreference = D1 ('MetaData "MediaPreference" "Network.Reddit.Types.Account" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "TurnOn" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TurnOff" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FollowSubreddit" 'PrefixI 'False) (U1 :: Type -> Type)))

data AcceptPMs Source #

Policy for accepting private messages, for use in user Preferences

Constructors

Everyone 
Whitelisted 

Instances

Instances details
Eq AcceptPMs Source # 
Instance details

Defined in Network.Reddit.Types.Account

Show AcceptPMs Source # 
Instance details

Defined in Network.Reddit.Types.Account

Generic AcceptPMs Source # 
Instance details

Defined in Network.Reddit.Types.Account

Associated Types

type Rep AcceptPMs :: Type -> Type #

ToJSON AcceptPMs Source # 
Instance details

Defined in Network.Reddit.Types.Account

FromJSON AcceptPMs Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep AcceptPMs Source # 
Instance details

Defined in Network.Reddit.Types.Account

type Rep AcceptPMs = D1 ('MetaData "AcceptPMs" "Network.Reddit.Types.Account" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "Everyone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Whitelisted" 'PrefixI 'False) (U1 :: Type -> Type))