Split off the haskell project into a module and wrote a driver.