Skip to content

Natural exponentiation is broken in master

/code/ghc/_build_master/stage1/bin/ghc --print-project-git-commit-id
6ff89c173f39813f74d7bbf95770c5e40039f155

Calculates nonsense:

(2 :: Natural) ^ (190 :: Int)
4611686018427387904

For comparison GHC-8.10.1

Prelude Numeric.Natural> (2 :: Natural) ^ (190 :: Int)
1569275433846670190958947355801916604025588861116008628224

I consider this release critical bug.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information