Copilot-Language/copilot-discussion

XOR for Stream Word8

Closed this issue · 2 comments

I've been unable to find XOR (exclusive-or) for the Stream Word8 type. Advice appreciated.

Sorry. I totally missed this.

Word8 is a member of the Bits typeclass, so Stream Word8 should too (any Stream a is an instance of Bits for any a that is an instance of Bits and Typed).

Can you use xor or (.^.)? https://hackage.haskell.org/package/copilot-language-3.10/docs/Copilot-Language-Operators-BitWise.html#v:.-94-.?

Closing this issue due to inactivity.