Revert "use 'xor' function from Data.Bits" since Bool is not an instance of Bits on base <4.7.0.0.

This reverts commit ac42cd34ba29e5ce467a7c3a2bedd0d250ef9fa0.