Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data RedditF m a where Source #
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 #
data LoginDetails Source #
newtype POSTWrapped a Source #
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 RateLimits Source #
data RateLimitInfo Source #
mainBaseURL :: Text Source #
loginBaseURL :: Text Source #
addAPIType :: Route -> Route Source #