Fix various issues with Haskell codeGen.

        All that's left is a parenthesis issue.