Safe Haskell | None |
---|---|
Language | Haskell2010 |
- getStory :: StoryId -> IO (Maybe Story)
- getComment :: CommentId -> IO (Maybe Comment)
- getPoll :: PollId -> IO (Maybe Poll)
- getPollOpt :: PollOptId -> IO (Maybe PollOpt)
- getUser :: UserId -> IO (Maybe User)
- getTopStories :: IO (Maybe TopStories)
- getMaxItem :: IO (Maybe MaxItem)
- getUpdates :: IO (Maybe Update)
- data Comment = Comment {
- commentBy :: Text
- commentId :: CommentId
- commentKids :: Maybe [Int]
- commentParent :: Int
- commentText :: Text
- commentTime :: UTCTime
- commentType :: Text
- newtype CommentId = CommentId Int
- data Poll = Poll {}
- newtype PollId = PollId Int
- data PollOpt = PollOpt {
- pollOptBy :: Text
- pollOptId :: PollOptId
- pollOptParent :: Int
- pollOptScore :: Int
- pollOptText :: Text
- pollOptTime :: UTCTime
- pollOptType :: Text
- newtype PollOptId = PollOptId Int
- data Story = Story {}
- newtype StoryId = StoryId Int
- data User = User {}
- newtype UserId = UserId Text
- data Update = Update {
- updateItems :: [Int]
- updateProfiles :: [Text]
- type MaxItem = Int
- type TopStories = [Int]
API Calls
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
Types
Comment | |
|
Types
PollOpt | |
|
Types
Types
Types
Update | |
|
type TopStories = [Int] Source