Fixes to Haskell and Javascript modules.