cpp server and haskell client gen flags