Code Monkey home page Code Monkey logo

integer-roots's People

Contributors

bodigrim avatar julmb avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

integer-roots's Issues

Support GHC 9.2

Math/NumberTheory/Roots/General.hs:254:37: error:
    • Couldn't match expected type ‘ghc-prim-0.8.0:GHC.Prim.Word#’
                  with actual type ‘ghc-prim-0.8.0:GHC.Prim.Word16#’
    • In the first argument of ‘word2Int#’, namely
        ‘(indexWord16OffAddr# smallPrimesAddr# k#)’
      In the first argument of ‘S#’, namely
        ‘(word2Int# (indexWord16OffAddr# smallPrimesAddr# k#))’
      In the expression:
        S# (word2Int# (indexWord16OffAddr# smallPrimesAddr# k#))
    |
254 |   $ map (\(I# k#) -> S# (word2Int# (indexWord16OffAddr# smallPrimesAddr# k#)))
    |

Test failure on big endian

https://buildd.debian.org/status/fetch.php?pkg=haskell-integer-roots&arch=s390x&ver=1.0.2.0-2&stamp=1696945515&raw=0
https://buildd.debian.org/status/fetch.php?pkg=haskell-integer-roots&arch=ppc64&ver=1.0.2.0-2&stamp=1696946613&raw=0

./Math/NumberTheory/Roots/General.hs:174: failure in expression `map isPerfectPower [0..10]'
expected: [True,True,False,False,True,False,False,False,True,True,False]
 but got: [True,True,False,False,True,*** Exception: divide by zero
                                      ^

./Math/NumberTheory/Roots/General.hs:193: failure in expression `map highestPower [0..10]'
expected: [(0,3),(1,3),(2,1),(3,1),(2,2),(5,1),(6,1),(7,1),(2,3),(3,2),(10,1)]
 but got: [(0,3),(1,3),(2,1),(3,1),(2,2),*** Exception: divide by zero
                                         ^

Examples: 23  Tried: 21  Errors: 0  Failures: 2
Test suite integer-roots-doctests: FAIL

Please support ghc 9.4

ghc-bignum < 1.3 currently prevents this. I'm not sure if there are any backwards-incompatible changes, however. I'm going to try to jailbreak and build this, and see if there are any problems that arise by just adjusting version bounds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.