reddit-0.2.0.0: Library for interfacing with Reddit's API

Safe HaskellNone
LanguageHaskell2010

Reddit.Types.Reddit

Documentation

type Reddit a = RedditT IO a Source

newtype RedditT m a Source

Constructors

RedditT (FreeT (RedditF m) m a) 

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 

Instances

withBaseURL :: Monad m => Text -> RedditT m a -> RedditT m a Source