Skip to content

Implement bitwise infix ops

Koz Ross requested to merge kozross/ghc:koz/infix-bitops into master

We currently have infix operations for bitwise AND (.&.) and IOR (.|.), but not for shifts, which still need to be written out in full. Additionally, while xor is short enough, it's a bit jarring to not have a 'symbolic' version of it.

We add all of the above, in a similar style to .&. and .|.. Additionally, we add operator versions of the unsafe shifts, named with ! to distinguish them.

Merge request reports