Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype CommentID = CommentID Text
- data CommentReference
- isActual :: CommentReference -> Bool
- isReference :: CommentReference -> Bool
- data Comment = Comment {
- commentID :: CommentID
- score :: Maybe Integer
- subredditID :: SubredditID
- subreddit :: SubredditName
- gilded :: Integer
- saved :: Bool
- author :: Username
- authorFlairCSSClass :: Maybe Text
- authorFlairText :: Maybe Text
- body :: Text
- bodyHTML :: Text
- replies :: Listing CommentID CommentReference
- created :: UTCTime
- edited :: Maybe UTCTime
- parentLink :: PostID
- inReplyTo :: Maybe CommentID
- treeSubComments :: CommentReference -> [CommentReference]
- isDeleted :: Comment -> Bool
- data PostComments = PostComments Post [CommentReference]
- type CommentListing = Listing CommentID Comment
- commentPrefix :: Text
Documentation
Instances
Eq CommentID Source # | |
Ord CommentID Source # | |
Defined in Reddit.Types.Comment | |
Read CommentID Source # | |
Show CommentID Source # | |
FromJSON CommentID Source # | |
ToQuery CommentID Source # | |
Thing CommentID Source # | |
FromJSON (POSTWrapped CommentID) Source # | |
Defined in Reddit.Types.Comment parseJSON :: Value -> Parser (POSTWrapped CommentID) # parseJSONList :: Value -> Parser [POSTWrapped CommentID] # |
data CommentReference Source #
Instances
Eq CommentReference Source # | |
Defined in Reddit.Types.Comment (==) :: CommentReference -> CommentReference -> Bool # (/=) :: CommentReference -> CommentReference -> Bool # | |
Read CommentReference Source # | |
Defined in Reddit.Types.Comment | |
Show CommentReference Source # | |
Defined in Reddit.Types.Comment showsPrec :: Int -> CommentReference -> ShowS # show :: CommentReference -> String # showList :: [CommentReference] -> ShowS # | |
FromJSON CommentReference Source # | |
Defined in Reddit.Types.Comment parseJSON :: Value -> Parser CommentReference # parseJSONList :: Value -> Parser [CommentReference] # | |
FromJSON (POSTWrapped [CommentReference]) Source # | |
Defined in Reddit.Types.Comment parseJSON :: Value -> Parser (POSTWrapped [CommentReference]) # parseJSONList :: Value -> Parser [POSTWrapped [CommentReference]] # |
isActual :: CommentReference -> Bool Source #
isReference c
returns is true if c
is an actual comment, false otherwise
isReference :: CommentReference -> Bool Source #
isReference c
returns is true if c
is a reference, false otherwise
Comment | |
|
Instances
data PostComments Source #
Instances
Eq PostComments Source # | |
Defined in Reddit.Types.Comment (==) :: PostComments -> PostComments -> Bool # (/=) :: PostComments -> PostComments -> Bool # | |
Read PostComments Source # | |
Defined in Reddit.Types.Comment readsPrec :: Int -> ReadS PostComments # readList :: ReadS [PostComments] # | |
Show PostComments Source # | |
Defined in Reddit.Types.Comment showsPrec :: Int -> PostComments -> ShowS # show :: PostComments -> String # showList :: [PostComments] -> ShowS # | |
FromJSON PostComments Source # | |
Defined in Reddit.Types.Comment parseJSON :: Value -> Parser PostComments # parseJSONList :: Value -> Parser [PostComments] # |
commentPrefix :: Text Source #