Safe Haskell | None |
---|---|
Language | Haskell2010 |
Reddit.Types.Comment
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 # | |
Read CommentID Source # | |
Show CommentID Source # | |
FromJSON CommentID Source # | |
ToQuery CommentID Source # | |
Thing CommentID Source # | |
FromJSON (POSTWrapped CommentID) Source # | |
Defined in Reddit.Types.Comment Methods parseJSON :: Value -> Parser (POSTWrapped CommentID) # parseJSONList :: Value -> Parser [POSTWrapped CommentID] # |
data CommentReference Source #
Instances
Eq CommentReference Source # | |
Defined in Reddit.Types.Comment Methods (==) :: CommentReference -> CommentReference -> Bool # (/=) :: CommentReference -> CommentReference -> Bool # | |
Read CommentReference Source # | |
Defined in Reddit.Types.Comment Methods readsPrec :: Int -> ReadS CommentReference # readList :: ReadS [CommentReference] # | |
Show CommentReference Source # | |
Defined in Reddit.Types.Comment Methods showsPrec :: Int -> CommentReference -> ShowS # show :: CommentReference -> String # showList :: [CommentReference] -> ShowS # | |
FromJSON CommentReference Source # | |
Defined in Reddit.Types.Comment Methods parseJSON :: Value -> Parser CommentReference # parseJSONList :: Value -> Parser [CommentReference] # | |
FromJSON (POSTWrapped [CommentReference]) Source # | |
Defined in Reddit.Types.Comment Methods 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
Constructors
Comment | |
Fields
|
Instances
Eq Comment Source # | |
Read Comment Source # | |
Show Comment Source # | |
FromJSON Comment Source # | |
Thing Comment Source # | |
FromJSON (POSTWrapped Comment) Source # | |
Defined in Reddit.Types.Comment Methods parseJSON :: Value -> Parser (POSTWrapped Comment) # parseJSONList :: Value -> Parser [POSTWrapped Comment] # |
data PostComments Source #
Constructors
PostComments Post [CommentReference] |
Instances
Eq PostComments Source # | |
Defined in Reddit.Types.Comment | |
Read PostComments Source # | |
Defined in Reddit.Types.Comment Methods readsPrec :: Int -> ReadS PostComments # readList :: ReadS [PostComments] # | |
Show PostComments Source # | |
Defined in Reddit.Types.Comment Methods showsPrec :: Int -> PostComments -> ShowS # show :: PostComments -> String # showList :: [PostComments] -> ShowS # | |
FromJSON PostComments Source # | |
Defined in Reddit.Types.Comment |
commentPrefix :: Text Source #