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

Safe HaskellNone
LanguageHaskell2010

Reddit.Types

Documentation

data Listing t a Source #

Constructors

Listing 

Fields

Instances

Functor (Listing t) Source # 

Methods

fmap :: (a -> b) -> Listing t a -> Listing t b #

(<$) :: a -> Listing t b -> Listing t a #

(Eq a, Eq t) => Eq (Listing t a) Source # 

Methods

(==) :: Listing t a -> Listing t a -> Bool #

(/=) :: Listing t a -> Listing t a -> Bool #

(Read a, Read t) => Read (Listing t a) Source # 
(Show a, Show t) => Show (Listing t a) Source # 

Methods

showsPrec :: Int -> Listing t a -> ShowS #

show :: Listing t a -> String #

showList :: [Listing t a] -> ShowS #

Ord t => Monoid (Listing t a) Source # 

Methods

mempty :: Listing t a #

mappend :: Listing t a -> Listing t a -> Listing t a #

mconcat :: [Listing t a] -> Listing t a #

(FromJSON t, FromJSON a) => FromJSON (Listing t a) Source # 

data Options a Source #

Constructors

Options 

Instances

Eq a => Eq (Options a) Source # 

Methods

(==) :: Options a -> Options a -> Bool #

(/=) :: Options a -> Options a -> Bool #

Read a => Read (Options a) Source # 
Show a => Show (Options a) Source # 

Methods

showsPrec :: Int -> Options a -> ShowS #

show :: Options a -> String #

showList :: [Options a] -> ShowS #

Default (Options a) Source # 

Methods

def :: Options a #

type Reddit a = RedditT IO a Source #

data RedditT m a Source #

Instances

MonadTrans RedditT Source # 

Methods

lift :: Monad m => m a -> RedditT m a #

Monad m => Monad (RedditT m) Source # 

Methods

(>>=) :: RedditT m a -> (a -> RedditT m b) -> RedditT m b #

(>>) :: RedditT m a -> RedditT m b -> RedditT m b #

return :: a -> RedditT m a #

fail :: String -> RedditT m a #

Monad m => Functor (RedditT m) Source # 

Methods

fmap :: (a -> b) -> RedditT m a -> RedditT m b #

(<$) :: a -> RedditT m b -> RedditT m a #

Monad m => Applicative (RedditT m) Source # 

Methods

pure :: a -> RedditT m a #

(<*>) :: RedditT m (a -> b) -> RedditT m a -> RedditT m b #

liftA2 :: (a -> b -> c) -> RedditT m a -> RedditT m b -> RedditT m c #

(*>) :: RedditT m a -> RedditT m b -> RedditT m b #

(<*) :: RedditT m a -> RedditT m b -> RedditT m a #

MonadIO m => MonadIO (RedditT m) Source # 

Methods

liftIO :: IO a -> RedditT m a #

data User Source #

Instances