Closed BebeSparkelSparkel closed 5 years ago
We'd need NonPositive
for completeness too.
@phadej I'm having problems building this. When I cabal configure
it errors with cabal: failed to parse output of 'ghc-pkg dump'
. What command should I use to build this?
cabal new-build
should be the only thing to build.
@Lysxia Thanks. I needed to reinstall cabal
Thanks! In the end I rewrote the patch to generate negative numbers directly, because negating the output of Positive
wouldn't ever generate minBound
for twos-complement integers.
I didn't even think of that. Appreciate your help getting that right
I think that Positive
had a similar bug in the past, which is why I spotted it :)
Trying to keep from obfuscating my code by negating Positive.