Mac OS 10.6.2

GHC 6.12.1

apache-cassandra-0.5.1 (JDK 1.6 from Apple)

thrift-incubating-0.2.0 (Compiled using GCC 4.2.1 and Boost 1.41 from MacPorts)





I uses a stock Cassandra install, and did not customize the included example schema, starting the server with

$ cd apache-cassandra-0.5.1

$ bin/cassandra -f





Getting the thrift compiler built and the Thrift lib installed into GHC proved to be a pain point for me, and will be the topic of a subsequent post if others have a similar experience.





Once the Thrift package is installed in GHC, and you have used the thrift compiler to compile compile the Cassandra interface definition file

$ thrift --gen hs apache-cassandra-0.5.1/interface.cassandra.thrift





You should have the generated Haskell cassandra sources: