hackernews-0.2.2.2: API for Hacker News

Safe HaskellNone
LanguageHaskell2010

Web.HackerNews

Contents

Synopsis

Hacker News Monad

hackerNews :: (Show a, FromJSON a) => HackerNews a -> IO a Source

HackerNews API request method

API Calls

getTopStories :: HackerNews (Maybe TopStories) Source

Retrieve the Top Stories on Hacker News

getMaxItem :: HackerNews (Maybe MaxItem) Source

Retrieve the largest ItemId

getUpdates :: HackerNews (Maybe Update) Source

Retrieve the latest updates

Types

type HackerNews a = ReaderT Connection IO a Source

Core Type

newtype CommentId Source

Constructors

CommentId Int 

data Poll Source

Types

Instances

Eq Poll 
Show Poll 
FromJSON Poll

JSON Instances

newtype PollId Source

Constructors

PollId Int 

Instances

newtype PollOptId Source

Constructors

PollOptId Int 

data Story Source

Types

Instances

Show Story 
FromJSON Story

JSON Instances

newtype StoryId Source

Constructors

StoryId Int 

Instances

data User Source

Types

Instances

Show User 
FromJSON User

JSON Instances

newtype UserId Source

Constructors

UserId Text 

Instances

data Update Source

Types

Constructors

Update 

Instances