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 Comment = Comment {
- commentID :: CommentID
- author :: Username
- body :: Body
- bodyHTML :: Body
- replies :: Seq ChildComment
- score :: Maybe Integer
- ups :: Maybe Integer
- downs :: Maybe Integer
- created :: UTCTime
- edited :: Maybe UTCTime
- subreddit :: SubredditName
- subredditID :: SubredditID
- gilded :: Int
- scoreHidden :: Maybe Bool
- linkID :: SubmissionID
- linkURL :: Maybe URL
- linkAuthor :: Maybe Username
- permaLink :: URL
- userReports :: Seq ItemReport
- modReports :: Seq ItemReport
- numReports :: Maybe Integer
- distinguished :: Maybe Distinction
- isSubmitter :: Bool
- stickied :: Bool
- newtype CommentID = CommentID Text
- data MoreComments = MoreComments {}
- data ChildComment
- data WithChildren
- data WithReplies
- commentP :: Object -> Parser Comment
- data LoadedChildren
Documentation
A Reddit comment
Comment | |
|
Instances
A Comment
ID
Instances
Eq CommentID Source # | |
Ord CommentID Source # | |
Defined in Network.Reddit.Types.Comment | |
Show CommentID Source # | |
Generic CommentID Source # | |
FromJSON CommentID Source # | |
ToHttpApiData CommentID Source # | |
Defined in Network.Reddit.Types.Comment toUrlPiece :: CommentID -> Text # toEncodedUrlPiece :: CommentID -> Builder # toHeader :: CommentID -> ByteString # toQueryParam :: CommentID -> Text # | |
Thing CommentID Source # | |
type Rep CommentID Source # | |
Defined in Network.Reddit.Types.Comment |
data MoreComments Source #
A link to load more children Comment
s
Instances
data ChildComment Source #
Represents a comments on a submission or replies to a comment, which can
be actual Comment
s, or a list of children corresponding to "load more"
or "continue this thread" links on Reddit's UI
Instances
data WithChildren Source #
This wraps the ChildComment
s of a Submission
Instances
data WithReplies Source #
This wraps a Comment
which has been fetched with its ChildComment
s
Instances
data LoadedChildren Source #