Fix Haskell parity error

Wrong ending condition,
Add cpp parity2