implementation of a sphinx client in haskell