WIP - beginning of haskell client