Twitter Streaming API for Haskell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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