This document discusses the development of libkonn, a Haskell library for accessing Twitter's APIs. It uses Haskell and ByteString to process JSON from the Twitter stream and REST APIs. Multiple streamers can run concurrently to gather tweets and store them in MongoDB. The library includes a tweet extractor that analyzes tweet text and metadata to identify replies, retweets, and mentions. It also provides a demo web interface built with Snap and Heist that visualizes tweet relationships as a graph.
Template Haskell allows code to be generated at compile time by splicing quasi quotations into the abstract syntax tree. It works by running Haskell code that constructs syntax expressions and splicing the results into the code being compiled. This allows features like generating boilerplate code, domain-specific languages, and compile-time metaprogramming in Haskell.
This document discusses the development of libkonn, a Haskell library for accessing Twitter's APIs. It uses Haskell and ByteString to process JSON from the Twitter stream and REST APIs. Multiple streamers can run concurrently to gather tweets and store them in MongoDB. The library includes a tweet extractor that analyzes tweet text and metadata to identify replies, retweets, and mentions. It also provides a demo web interface built with Snap and Heist that visualizes tweet relationships as a graph.
Template Haskell allows code to be generated at compile time by splicing quasi quotations into the abstract syntax tree. It works by running Haskell code that constructs syntax expressions and splicing the results into the code being compiled. This allows features like generating boilerplate code, domain-specific languages, and compile-time metaprogramming in Haskell.