Git Product home page Git Product logo

active's Introduction

Build Status

This package defines an Active abstraction for time-varying values with finite start and end times. It is used for describing animations within the diagrams framework.

To install,

cabal install active

active's People

Contributors

andreasabel avatar andygill avatar bergey avatar bgamari avatar bollu avatar byorgey avatar cchalmers avatar jeffreyrosenbluth avatar lrworth avatar phadej avatar zenzike avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

active's Issues

Test failure with QuickCheck-2.14.3

Seems new generator behavior in QuickCheck-2.14.3 reveals an issue in the test suite:

Running 1 test suites...
Test suite active-tests: RUNNING...
era/start                               +++ OK, passed 200 tests.
era/end                                 +++ OK, passed 200 tests.
duration                                +++ OK, passed 200 tests.
shiftDyn/start                          +++ OK, passed 200 tests.
shiftDyn/end                            +++ OK, passed 200 tests.
shiftDyn/fun                            +++ OK, passed 200 tests.
active/semi-hom                         +++ OK, passed 200 tests.
ui/id                                   +++ OK, passed 200 tests.
stretch/start                           +++ OK, passed 200 tests.
stretch/dur                             +++ OK, passed 200 tests.
stretchTo/dur                           +++ OK, passed 200 tests; 236 discarded.
during/const                            +++ OK, passed 200 tests; 59 discarded.
during/start                            +++ OK, passed 200 tests.
during/end                              *** Failed! Falsified (after 31 tests):
<Era (Min {getMin = Time {unTime = (-205) % 12}},Max {getMax = Time {unTime = 3583 % 348}})>
<Era (Min {getMin = Time {unTime = 194 % 13}},Max {getMax = Time {unTime = 194 % 13}})>
shift/start                             +++ OK, passed 200 tests.
shift/end                               +++ OK, passed 200 tests.
atTime/start                            +++ OK, passed 200 tests.
atTime/fun                              +++ OK, passed 200 tests.
Test suite active-tests: FAIL
Test suite logged to: dist/test/active-0.2.0.17-active-tests.log
0 of 1 test suites (0 of 1 test cases) passed.

Ref. nick8325/quickcheck#359.

Test suite weirdness on arm64 and s390x

Hi,

I observe test failures on arm64 and s390x:
https://buildd.debian.org/status/fetch.php?pkg=haskell-active&arch=arm64&ver=0.2.0.4-1&stamp=1442017124
https://buildd.debian.org/status/fetch.php?pkg=haskell-active&arch=s390x&ver=0.2.0.4-1&stamp=1442020102
while the test suite goes through on other, similar architectures, including mipsel, powerpc and powerpc64, so there is no obvious pattern here.

The build is killed with a timeout after 150 minutes – is there anything in the testsuite that can deadlock on a non-threaded runtime? (Hoping this is not just haskell/cabal#2398 again, but then it would fail on other architectures with a non-threaded runtime, I’d say.)

Please bump quickcheck upperbound

I have successfully compiled and run the test suite using:

  • ghc-8.10.3
  • base-4.14.1.0
  • QuickCheck-2.14.2

If you can make this change and release a new revision on hackage, it will allow us to better package this in gentoo.

build fails with lens-4.15.2

In the stackage nightly build:

Preprocessing library active-0.2.0.12...
[1 of 1] Compiling Data.Active      ( src/Data/Active.hs, dist/build/Data/Active.o )

src/Data/Active.hs:332:1: error:
    Duplicate instance declarations:
      instance Wrapped (MaybeApply f_auSr a_auSs)
        -- Defined at src/Data/Active.hs:332:1
      instance Wrapped (MaybeApply f a)
        -- Defined in ‘Control.Lens.Wrapped’

src/Data/Active.hs:332:1: error:
    Duplicate instance declarations:
      instance MaybeApply f_auSW a_auSX ~ t_auSY =>
               Rewrapped (MaybeApply f_auSZ a_auT0) t_auSY
        -- Defined at src/Data/Active.hs:332:1
      instance t ~ MaybeApply f' a' => Rewrapped (MaybeApply f a) t
        -- Defined in ‘Control.Lens.Wrapped’

Doctests failing

Test suite active-doctests: RUNNING...
Active.hs:1151: failure in expression `samples 1 (cut 4 (interval 0 2 ->> always 3))'
expected: [0 % 1,1 % 1,3 % 1,3 % 1,3 % 1]
 but got: [0 % 1,1 % 1,2 % 1,3 % 1,3 % 1,3 % 1]

Active.hs:1169: failure in expression `samples 1 (cut 4 (interval 0 2 >>- always 3))'
expected: [0 % 1,1 % 1,2 % 1,3 % 1,3 % 1]
 but got: [0 % 1,1 % 1,2 % 1,3 % 1,3 % 1,3 % 1]

Active.hs:1243: failure in expression `map (numerator . getSum) (samples 1 a1)'
expected: [0,1,2,3,1,2,3]
 but got: [0,1,2,3,3,4,5,6]

Examples: 49  Tried: 48  Errors: 0  Failures: 3
Test suite active-doctests: FAIL

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.