Safe Haskell | None |
---|---|
Language | Haskell2010 |
Reddit.Types
Documentation
Instances
Eq CaptchaID Source # | |
Ord CaptchaID Source # | |
Read CaptchaID Source # | |
Show CaptchaID Source # | |
FromJSON CaptchaID Source # | |
FromJSON (POSTWrapped CaptchaID) Source # | |
Defined in Reddit.Types.Captcha Methods parseJSON :: Value -> Parser (POSTWrapped CaptchaID) # parseJSONList :: Value -> Parser [POSTWrapped CaptchaID] # |
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] # |
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] # |
Instances
Functor (Listing t) Source # | |
(Eq t, Eq a) => Eq (Listing t a) Source # | |
(Read t, Read a) => Read (Listing t a) Source # | |
(Show t, Show a) => Show (Listing t a) Source # | |
Ord t => Semigroup (Listing t a) Source # | |
Ord t => Monoid (Listing t a) Source # | |
(FromJSON t, FromJSON a) => FromJSON (Listing t a) Source # | |
data LoginDetails Source #
Instances
Show LoginDetails Source # | |
Defined in Reddit.Types.Reddit Methods showsPrec :: Int -> LoginDetails -> ShowS # show :: LoginDetails -> String # showList :: [LoginDetails] -> ShowS # | |
Receivable LoginDetails Source # | |
Defined in Reddit.Types.Reddit Methods receive :: ErrorReceivable e => Response ByteString -> Either (APIError e) LoginDetails # |
Instances
Eq MessageID Source # | |
Ord MessageID Source # | |
Read MessageID Source # | |
Show MessageID Source # | |
FromJSON MessageID Source # | |
ToQuery MessageID Source # | |
Thing MessageID Source # | |
FromJSON (POSTWrapped MessageID) Source # | |
Defined in Reddit.Types.Message Methods parseJSON :: Value -> Parser (POSTWrapped MessageID) # parseJSONList :: Value -> Parser [POSTWrapped MessageID] # |
data MessageKind Source #
Constructors
CommentMessage CommentID | |
PrivateMessage MessageID |
Instances
Constructors
Options | |
Fields
|
data PaginationOption a Source #
Instances
Eq a => Eq (PaginationOption a) Source # | |
Defined in Reddit.Types.Options Methods (==) :: PaginationOption a -> PaginationOption a -> Bool # (/=) :: PaginationOption a -> PaginationOption a -> Bool # | |
Read a => Read (PaginationOption a) Source # | |
Defined in Reddit.Types.Options Methods readsPrec :: Int -> ReadS (PaginationOption a) # readList :: ReadS [PaginationOption a] # readPrec :: ReadPrec (PaginationOption a) # readListPrec :: ReadPrec [PaginationOption a] # | |
Show a => Show (PaginationOption a) Source # | |
Defined in Reddit.Types.Options Methods showsPrec :: Int -> PaginationOption a -> ShowS # show :: PaginationOption a -> String # showList :: [PaginationOption a] -> ShowS # |
data PostContent Source #
Instances
Eq PostContent Source # | |
Defined in Reddit.Types.Post | |
Read PostContent Source # | |
Defined in Reddit.Types.Post Methods readsPrec :: Int -> ReadS PostContent # readList :: ReadS [PostContent] # readPrec :: ReadPrec PostContent # readListPrec :: ReadPrec [PostContent] # | |
Show PostContent Source # | |
Defined in Reddit.Types.Post Methods showsPrec :: Int -> PostContent -> ShowS # show :: PostContent -> String # showList :: [PostContent] -> ShowS # |
Instances
Eq PostID Source # | |
Ord PostID Source # | |
Read PostID Source # | |
Show PostID Source # | |
FromJSON PostID Source # | |
ToQuery PostID Source # | |
Thing PostID Source # | |
FromJSON (POSTWrapped PostID) Source # | |
Defined in Reddit.Types.Post Methods parseJSON :: Value -> Parser (POSTWrapped PostID) # parseJSONList :: Value -> Parser [POSTWrapped PostID] # |
data RedditError Source #
Constructors
Instances
Eq RedditError Source # | |
Defined in Reddit.Types.Error | |
Show RedditError Source # | |
Defined in Reddit.Types.Error Methods showsPrec :: Int -> RedditError -> ShowS # show :: RedditError -> String # showList :: [RedditError] -> ShowS # | |
FromJSON RedditError Source # | |
Defined in Reddit.Types.Error | |
ErrorReceivable RedditError Source # | |
Defined in Reddit.Types.Error Methods |
newtype SubredditName Source #
Instances
Minimal complete definition
Instances
Thing Subreddit Source # | |
Thing SubredditID Source # | |
Defined in Reddit.Types.Subreddit Methods fullName :: SubredditID -> Text Source # | |
Thing UserID Source # | |
Thing BanID Source # | |
Thing Post Source # | |
Thing PostID Source # | |
Thing Comment Source # | |
Thing CommentID Source # | |
Thing MessageKind Source # | |
Defined in Reddit.Types.Message Methods fullName :: MessageKind -> Text Source # | |
Thing MessageID Source # | |
Thing Message Source # | |