Fix Haskell code generation.
Use crate_id instead of pkgid to fix test suite on main repository.