hackernews-0.1.0.0: API for Hacker News

Safe HaskellNone
LanguageHaskell2010

Web.HackerNews

Contents

Synopsis

API Calls

getPoll :: PollId -> IO (Maybe Poll) Source

Retrieve a Poll by PollId

getUser :: UserId -> IO (Maybe User) Source

Retrieve a User by UserId

getTopStories :: IO (Maybe TopStories) Source

Retrieve the Top Stories on Hacker News

getMaxItem :: IO (Maybe MaxItem) Source

Retrieve the largest ItemId

getUpdates :: IO (Maybe Update) Source

Retrieve the largest ItemId

Types

newtype CommentId Source

Constructors

CommentId Int 

data Poll Source

Types

Constructors

Poll 

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

Constructors

User 

Instances

Show User 
FromJSON User

JSON Instances

newtype UserId Source

Constructors

UserId Text 

Instances

data Update Source

Types

Constructors

Update 

Fields

updateItems :: [Int]
 
updateProfiles :: [Text]
 

Instances