Safe Haskell | None |
---|
- getListing :: String -> String -> Int -> Maybe String -> IO NamedListing
- getThing :: FromJSON a => String -> String -> a -> IO a
- handleCurlAesonException :: a -> CurlAesonException -> IO a
- getComments :: String -> String -> String -> IO Comments
Documentation
getListing :: String -> String -> Int -> Maybe String -> IO NamedListingSource
get posts according to selection in argument's subreddit as a listing
getThing :: FromJSON a => String -> String -> a -> IO aSource
get posts or comments from an apiurl, a sort order and a default in case of error
handleCurlAesonException :: a -> CurlAesonException -> IO aSource
print error message if there is a cURL exception