Git Product home page Git Product logo

ghci-hexcalc's People

Contributors

takenobu-hs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ghci-hexcalc's Issues

tests failing to build on stackage nightly (GHC 8.10.1)

On Stackage Nightly we are seeing the following failures while trying to build the test suite. We have marked the package as expecting test failures. Let us know if you locate a fix for the issue and want the package tested again.


Test suite failure for package ghci-hexcalc-0.1.1.0
    test-ghci-hexcalc:  exited with: ExitFailure 1
Full log available at /var/stackage/work/unpack-dir/.stack-work/logs/ghci-hexcalc-0.1.1.0-test.log



    src/Data/GHex.hs:143:1: error:
        Could not load module ‘Data.Binary.Put’
        It is a member of the hidden package ‘binary-0.8.8.0’.
        You can run ‘:set -package binary’ to expose it.
        (Note: this unloads all the modules in the current scope.)
        Use -v (or `:set -v` in ghci) to see a list of the files searched for.
        |
    143 | import           Data.Binary.Put (runPut, putWord32le, putWord64le,
        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

    src/Data/GHex.hs:145:1: error:
        Could not load module ‘Data.Binary.Get’
        It is a member of the hidden package ‘binary-0.8.8.0’.
        You can run ‘:set -package binary’ to expose it.
        (Note: this unloads all the modules in the current scope.)
        Use -v (or `:set -v` in ghci) to see a list of the files searched for.
        |
    145 | import           Data.Binary.Get (runGet, getFloatle, getDoublele,
        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

Failing tests because of (==>)

Tests fail occasionally with output like the following:

src/Data/GHex.hs:1063: failure in expression `(x1 >= x2 && x2 >= 0 && x1 < hexBitSize) ==> (range1 $ bits x1 x2) == (x1,x2)'
*** Gave up! Passed only 97 tests; 1000 discarded tests.

without extra Arbitrary instance I have sketched only the following fix:

-- prop> forAll (arbitrary `suchThat` (\(x1, x2) -> x1 >= x2 && x2 >= 0 && x1 < hexBitSize)) $ \(x1,x2) -> range1 ( bits x1 x2) == (x1,x2)

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.