diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2021-01-11 17:48:04 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-01-17 05:55:37 -0500 |
commit | 6f9a817ffff5eec8575ced9b445a63ae56c1e115 (patch) | |
tree | 72c49ce56d3a4a73b10ff17f842bfcf13846783f /compiler/GHC/Tc/Module.hs | |
parent | 907f1e4a8bb159c082c30d436f4555110e1055c2 (diff) | |
download | haskell-6f9a817ffff5eec8575ced9b445a63ae56c1e115.tar.gz |
Bignum: fix for Integer/Natural Ord instances
* allow `integerCompare` to inline into `integerLe#`, etc.
* use `naturalSubThrow` to implement Natural's `(-)`
* use `naturalNegate` to implement Natural's `negate`
* implement and use `integerToNaturalThrow` to implement Natural's `fromInteger`
Thanks to @christiaanb for reporting these
Diffstat (limited to 'compiler/GHC/Tc/Module.hs')
0 files changed, 0 insertions, 0 deletions