| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Reddit.Types.Reddit
Documentation
data RedditF m a where Source #
Constructors
| FailWith :: APIError RedditError -> RedditF m a | |
| Nest :: RedditT m b -> (Either (APIError RedditError) b -> a) -> RedditF m a | |
| NestResuming :: RedditT m b -> (Either (APIError RedditError, Maybe (RedditT m b)) b -> a) -> RedditF m a | |
| ReceiveRoute :: Receivable b => Route -> (b -> a) -> RedditF m a | |
| RunRoute :: FromJSON b => Route -> (b -> a) -> RedditF m a | |
| WithBaseURL :: Text -> RedditT m b -> (b -> a) -> RedditF m a |
receiveRoute :: (Receivable a, Monad m) => Route -> RedditT m a Source #
newtype POSTWrapped a Source #
Constructors
| POSTWrapped a |
Instances
| Functor POSTWrapped Source # | |
| Eq a => Eq (POSTWrapped a) Source # | |
| Read a => Read (POSTWrapped a) Source # | |
| Show a => Show (POSTWrapped a) Source # | |
| FromJSON (POSTWrapped [CommentReference]) # | |
| FromJSON (POSTWrapped CaptchaID) # | |
| FromJSON (POSTWrapped PostID) # | |
| FromJSON (POSTWrapped Comment) # | |
| FromJSON (POSTWrapped CommentID) # | |
| FromJSON (POSTWrapped MessageID) # | |
type ShouldRateLimit = Bool Source #
data RateLimitInfo Source #
Instances
mainBaseURL :: Text Source #
loginBaseURL :: Text Source #
addAPIType :: Route -> Route Source #