diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-07-11 10:04:57 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-07-14 21:33:19 -0400 |
commit | e0db878a789e58c2a1aba2e73d42857008174124 (patch) | |
tree | c66f377a195775cfeded764c14db7a332b728480 /libraries/ghc-bignum/src/GHC/Num/Natural.hs-boot | |
parent | 2379722438cb551210c4899119ade05989c17166 (diff) | |
download | haskell-e0db878a789e58c2a1aba2e73d42857008174124.tar.gz |
ghc-bignum: bring in sync .hs-boot files with module declarations
Before this change `BIGNUM_BACKEND=native` build was failing as:
```
libraries/ghc-bignum/src/GHC/Num/BigNat/Native.hs:708:16: error:
* Variable not in scope: naturalFromBigNat# :: WordArray# -> t
* Perhaps you meant one of these:
`naturalFromBigNat' (imported from GHC.Num.Natural),
`naturalToBigNat' (imported from GHC.Num.Natural)
|
708 | m' = naturalFromBigNat# m
|
```
This happens because `.hs-boot` files are slightly out of date.
This change brings in data and function types in sync.
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/18437
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'libraries/ghc-bignum/src/GHC/Num/Natural.hs-boot')
-rw-r--r-- | libraries/ghc-bignum/src/GHC/Num/Natural.hs-boot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/ghc-bignum/src/GHC/Num/Natural.hs-boot b/libraries/ghc-bignum/src/GHC/Num/Natural.hs-boot index 28cf5d1771..964292fa59 100644 --- a/libraries/ghc-bignum/src/GHC/Num/Natural.hs-boot +++ b/libraries/ghc-bignum/src/GHC/Num/Natural.hs-boot @@ -14,8 +14,8 @@ data Natural naturalToWord# :: Natural -> Word# naturalFromWord# :: Word# -> Natural -naturalToBigNat :: Natural -> BigNat -naturalFromBigNat :: BigNat -> Natural +naturalFromBigNat# :: BigNat# -> Natural +naturalToBigNat# :: Natural -> BigNat# naturalMul :: Natural -> Natural -> Natural naturalRem :: Natural -> Natural -> Natural naturalIsZero :: Natural -> Bool |