Copyright | (c) 2021 Rory Tyler Hayford |
---|---|
License | BSD-3-Clause |
Maintainer | rory.hayford@protonmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data LiveThread = LiveThread {}
- newtype LiveThreadID = LiveThreadID Text
- data PostableLiveThread = PostableLiveThread {}
- type NewLiveThread = PostableLiveThread
- type UpdatedLiveThread = PostableLiveThread
- liveThreadToPostable :: LiveThread -> UpdatedLiveThread
- mkNewLiveThread :: Title -> NewLiveThread
- data PostedLiveThread
- data LiveUpdate = LiveUpdate {
- liveUpdateID :: LiveUpdateID
- author :: Maybe Username
- body :: Body
- bodyHTML :: Body
- stricken :: Bool
- embeds :: Seq LiveUpdateEmbed
- newtype LiveUpdateID = LiveUpdateID Text
- data LiveUpdateEmbed = LiveUpdateEmbed {}
- data LiveContributor = LiveContributor {}
- newtype LiveContributorList = LiveContributorList (Seq LiveContributor)
- data LivePermission
- data LiveReportType
- data LiveState
Documentation
data LiveThread Source #
An existing Reddit live thread. It may be currently live or already complete
LiveThread | |
|
Instances
newtype LiveThreadID Source #
ID for a single LiveThread
Instances
data PostableLiveThread Source #
Data to create a new LiveThread
or update an existing one. In the latter
case, see liveThreadToPostable
for conversion
Instances
type NewLiveThread = PostableLiveThread Source #
Type synonym for creating new live threads
type UpdatedLiveThread = PostableLiveThread Source #
Type synonym for updating existing live threads
liveThreadToPostable :: LiveThread -> UpdatedLiveThread Source #
Convenience function to transform an existing LiveThread
into
a PostableLiveThread
, which may be used in updates
mkNewLiveThread :: Title -> NewLiveThread Source #
Create a NewLiveThread
with default values for most fields
data PostedLiveThread Source #
Wrapper for parsing the ID returned from POSTing a livethred
Instances
Show PostedLiveThread Source # | |
Defined in Network.Reddit.Types.Live showsPrec :: Int -> PostedLiveThread -> ShowS # show :: PostedLiveThread -> String # showList :: [PostedLiveThread] -> ShowS # | |
Generic PostedLiveThread Source # | |
Defined in Network.Reddit.Types.Live type Rep PostedLiveThread :: Type -> Type # from :: PostedLiveThread -> Rep PostedLiveThread x # to :: Rep PostedLiveThread x -> PostedLiveThread # | |
FromJSON PostedLiveThread Source # | |
Defined in Network.Reddit.Types.Live parseJSON :: Value -> Parser PostedLiveThread # parseJSONList :: Value -> Parser [PostedLiveThread] # | |
type Rep PostedLiveThread Source # | |
Defined in Network.Reddit.Types.Live type Rep PostedLiveThread = D1 ('MetaData "PostedLiveThread" "Network.Reddit.Types.Live" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'True) (C1 ('MetaCons "PostedLiveThread" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LiveThreadID))) |
data LiveUpdate Source #
An individual update in a LiveThread
LiveUpdate | |
|
Instances
newtype LiveUpdateID Source #
ID for a LiveUpdate
Instances
data LiveUpdateEmbed Source #
External resources embedded in a LiveUpdate
Instances
data LiveContributor Source #
A user contributor in a LiveThread
Instances
newtype LiveContributorList Source #
Wrapper to parse lists of LiveContributor
s
Instances
data LivePermission Source #
Permission granted to a LiveContributor
Instances
data LiveReportType Source #
The reason for reporting the LiveThread
to the Reddit admins