Coder Social home page Coder Social logo

qc-instances's People

Contributors

aslatter avatar basvandijk avatar depressed-pho avatar jcristovao avatar knrafto avatar nikita-volkov avatar norfairking avatar phadej avatar ryanglscott avatar

Stargazers

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

Watchers

 avatar  avatar

qc-instances's Issues

Build failure with Quickcheck 2.8.2

Resolving dependencies...
Configuring quickcheck-instances-0.3.11...
Building quickcheck-instances-0.3.11...
Preprocessing library quickcheck-instances-0.3.11...
[2 of 2] Compiling Test.QuickCheck.Instances ( src/Test/QuickCheck/Instances.hs, dist/dist-sandbox-f92f5d90/build/Test/QuickCheck/Instances.o )

src/Test/QuickCheck/Instances.hs:135:10:
    Duplicate instance declarations:
      instance Arbitrary a => Arbitrary (IntMap.IntMap a)
        -- Defined at src/Test/QuickCheck/Instances.hs:135:10
      instance [safe] Arbitrary a => Arbitrary (IntMap.IntMap a)
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:139:10:
    Duplicate instance declarations:
      instance CoArbitrary a => CoArbitrary (IntMap.IntMap a)
        -- Defined at src/Test/QuickCheck/Instances.hs:139:10
      instance [safe] CoArbitrary a => CoArbitrary (IntMap.IntMap a)
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:142:10:
    Duplicate instance declarations:
      instance Arbitrary IntSet.IntSet
        -- Defined at src/Test/QuickCheck/Instances.hs:142:10
      instance [safe] Arbitrary IntSet.IntSet
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:146:10:
    Duplicate instance declarations:
      instance CoArbitrary IntSet.IntSet
        -- Defined at src/Test/QuickCheck/Instances.hs:146:10
      instance [safe] CoArbitrary IntSet.IntSet
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:149:10:
    Duplicate instance declarations:
      instance (Ord k, Arbitrary k, Arbitrary v) =>
               Arbitrary (Map.Map k v)
        -- Defined at src/Test/QuickCheck/Instances.hs:149:10
      instance [safe] (Ord k, Arbitrary k, Arbitrary v) =>
                      Arbitrary (Map.Map k v)
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:153:10:
    Duplicate instance declarations:
      instance (CoArbitrary k, CoArbitrary v) =>
               CoArbitrary (Map.Map k v)
        -- Defined at src/Test/QuickCheck/Instances.hs:153:10
      instance [safe] (CoArbitrary k, CoArbitrary v) =>
                      CoArbitrary (Map.Map k v)
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:156:10:
    Duplicate instance declarations:
      instance Arbitrary a => Arbitrary (Seq.Seq a)
        -- Defined at src/Test/QuickCheck/Instances.hs:156:10
      instance [safe] Arbitrary a => Arbitrary (Seq.Seq a)
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:160:10:
    Duplicate instance declarations:
      instance CoArbitrary a => CoArbitrary (Seq.Seq a)
        -- Defined at src/Test/QuickCheck/Instances.hs:160:10
      instance [safe] CoArbitrary a => CoArbitrary (Seq.Seq a)
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:163:10:
    Duplicate instance declarations:
      instance (Ord a, Arbitrary a) => Arbitrary (Set.Set a)
        -- Defined at src/Test/QuickCheck/Instances.hs:163:10
      instance [safe] (Ord a, Arbitrary a) => Arbitrary (Set.Set a)
        -- Defined in ‘Test.QuickCheck.Arbitrary’

src/Test/QuickCheck/Instances.hs:167:10:
    Duplicate instance declarations:
      instance CoArbitrary a => CoArbitrary (Set.Set a)
        -- Defined at src/Test/QuickCheck/Instances.hs:167:10
      instance [safe] CoArbitrary a => CoArbitrary (Set.Set a)
        -- Defined in ‘Test.QuickCheck.Arbitrary’
Failed to install quickcheck-instances-0.3.11

Add OverlappingInstances ?

Hello,

Thanks for sharing the module.

It is very useful but I find that I need different instances for some types.

I am wondering if you could add OverlappingInstances Pragma to allow users to override the instance, when the need arises. It is a pita to create a newtype just to override the Arbitrary instance.

Thanks
Joe

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.