Natural shiftL 0 65 not equal to 0
Summary
GHCi, version 9.0.0.20201227: https://www.haskell.org/ghc/ :? for help
ghci> import Data.Bits
ghci> import GHC.Natural
ghci> shiftL 0 65 == (0 :: Natural)
False
Expected behavior
0 should be equal to 0, no matter how many bits you shift it to the left.
Environment
- GHC version used: 9.0.1-rc1
Optional:
- Operating System: Ubuntu 18.04 LTS (on WSL2, Windows 10.0.19042)
- System Architecture: x86_64