Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Twitter Streaming API for Haskell
Haskell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Web
LICENSE
README.md
twitterstream.cabal

README.md

Twitter Streaming for Haskell

An interface ot the Twitter streaming API for Haskell. The status objects are of the same type as those in hs-twitter.

The library provides an iteratee to extract status objects from a stream of characters as well as a driver to stream HTTP respones. This allows for a simple and efficient interface:

import qualified Web.TwitterStream as Stream
...

Stream.driver (Stream.BasicAuth "user" "pass") Stream.Sample $ do
  status <- Stream.status
  case status of
    Just status -> do something...
    Nothing -> parse fail..

Build via cabal:

$ cabal configure && cabal build

The build the included example:

$ ghc --make stream.hs
$ ./stream username password
Something went wrong with that request. Please try again.