Git Product home page Git Product logo

mixed-types-num's People

Contributors

michalkonecny avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

teofilc

mixed-types-num's Issues

Test suite failure in version 0.2

Preprocessing test suite 'spec' for mixed-types-num-0.2...
[1 of 9] Compiling Numeric.MixedTypes.RoundSpec ( test/Numeric/MixedTypes/RoundSpec.hs, dist/build/spec/spec-tmp/Numeric/MixedTypes/RoundSpec.o )

test/Numeric/MixedTypes/RoundSpec.hs:14:1: error:
    Failed to load interface for ‘Numeric.MixedTypes’
    Perhaps you meant
      Numeric.MixedTypes.Eq (from mixed-types-num-0.2)
      Numeric.MixedTypes.Ord (from mixed-types-num-0.2)
      Numeric.MixedTypes.Bool (from mixed-types-num-0.2)
    Use -v to see a list of the files searched for.

Test suite compilation failure in version 0.4.0: No instance for (CanTestFinite Int)

/Users/dan/scratch/mixed-types-num-0.4.0/test/Numeric/MixedTypes/MinMaxAbsSpec.hs:20:3: error:
    • No instance for (CanTestFinite Int)
        arising from a use of ‘specCanMinMaxNotMixed’
    • In a stmt of a 'do' block: specCanMinMaxNotMixed tInt
      In the expression:
        do specCanMinMaxNotMixed tInt
           specCanMinMaxNotMixed tInteger
           specCanMinMaxNotMixed tRational
           specCanMinMax tInt tInteger tRational
           ....
      In an equation for ‘spec’:
          spec
            = do specCanMinMaxNotMixed tInt
                 specCanMinMaxNotMixed tInteger
                 specCanMinMaxNotMixed tRational
                 ....
   |
20 |   specCanMinMaxNotMixed tInt
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^

I was able to reproduce this locally like so:

stack unpack mixed-types-num-0.4.0 && cd mixed-types-num-0.4.0
echo 'resolver: nightly-2019-04-10' > stack.yaml
stack build --test --bench --no-run-benchmarks --fast

Version 0.3.2 introduces breaking changes in a minor release

This is currently breaking aern2-mp's build. In particular:

[ 7 of 25] Compiling AERN2.MP.Float.UseRounded.Conversions ( src/AERN2/MP/Float/UseRounded/Conversions.hs, dist/build/AERN2/MP/Float/UseRounded/Conversions.o )

src/AERN2/MP/Float/UseRounded/Conversions.hs:64:25: error:
    • Variable not in scope: quot :: Integer -> Integer -> Integer
    • Perhaps you meant ‘P.quot’ (imported from Prelude)
   |
64 |       n = (numerator r) `quot` (denominator r)
   |                         ^^^^^^

It appears that the problem is the addition of Integral (..) to the list of hidden typeclasses in the PreludeHiding module.

fails to build with ghc-9.6

       Building library for mixed-types-num-0.5.11..                                                                                
       [ 1 of 24] Compiling Data.Convertible.Base                 
                                                                                                                                    
       /var/stackage/work/unpack-dir/unpacked/mixed-types-num-0.5.11-4964cc20935da519bedbcb8f61d873a04cc2ed0b4c212abfc0539aaab018f41
7/src/Data/Convertible/Base.hs:39:1: error:                                                                                         
           Could not find module ‘Control.Monad.Error’                                                                              
           Perhaps you meant                                                                                                                     Control.Monad.Co (needs flag -package-id kan-extensions-5.2.5)                                                         
             Control.Monad.Log (needs flag -package-id logging-effect-1.4.0)
             Control.Monad.Try (needs flag -package-id typecheck-plugin-nat-simple-0.1.0.9)  
           Use -v (or `:set -v` in ghci) to see a list of the files searched for.
          |                                                       
       39 | import Control.Monad.Error              
          | ^^^^^^^^^^^^^^^^^^^^^^^^^^

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.