packages feed

quickcheck-instances-0.3.33: quickcheck-instances.cabal

cabal-version:      2.2
name:               quickcheck-instances
version:            0.3.33
synopsis:           Common quickcheck instances
description:
  QuickCheck instances.
  .
  The goal is to supply QuickCheck instances for
  types provided by the Haskell Platform.
  .
  Since all of these instances are provided as
  orphans, I recommend that you do not use this library
  within another library module, so that you don't
  impose these instances on down-stream consumers of
  your code.

license:            BSD-3-Clause
license-file:       LICENSE
author:
  Antoine Latter <aslatter@gmail.com>, Oleg Grenrus <oleg.grenrus@iki.fi>

maintainer:         Oleg Grenrus <oleg.grenrus@iki.fi>
homepage:           https://github.com/haskellari/qc-instances
bug-reports:        https://github.com/haskellari/qc-instances/issues
copyright:          Copyright 2012-2016 Antoine Latter, 2017-2019 Oleg Grenrus
category:           Testing
build-type:         Simple
extra-source-files: CHANGES
tested-with:
  GHC ==8.6.5
   || ==8.8.4
   || ==8.10.7
   || ==9.0.2
   || ==9.2.8
   || ==9.4.8
   || ==9.6.7
   || ==9.8.4
   || ==9.10.2
   || ==9.12.2

source-repository head
  type:     git
  location: https://github.com/haskellari/qc-instances.git

library
  default-language:   Haskell2010
  default-extensions:
    BangPatterns
    FlexibleContexts
    FlexibleInstances
    TypeOperators

  exposed-modules:
    Test.QuickCheck.Instances
    Test.QuickCheck.Instances.Array
    Test.QuickCheck.Instances.Array.Byte
    Test.QuickCheck.Instances.ByteString
    Test.QuickCheck.Instances.CaseInsensitive
    Test.QuickCheck.Instances.Containers
    Test.QuickCheck.Instances.DataFix
    Test.QuickCheck.Instances.Hashable
    Test.QuickCheck.Instances.Natural
    Test.QuickCheck.Instances.OldTime
    Test.QuickCheck.Instances.Primitive
    Test.QuickCheck.Instances.Scientific
    Test.QuickCheck.Instances.Semigroup
    Test.QuickCheck.Instances.Solo
    Test.QuickCheck.Instances.Strict
    Test.QuickCheck.Instances.Tagged
    Test.QuickCheck.Instances.Text
    Test.QuickCheck.Instances.Text.Short
    Test.QuickCheck.Instances.These
    Test.QuickCheck.Instances.Time
    Test.QuickCheck.Instances.Transformer
    Test.QuickCheck.Instances.UnorderedContainers
    Test.QuickCheck.Instances.UUID
    Test.QuickCheck.Instances.Vector
    Test.QuickCheck.Instances.Void

  other-modules:      Test.QuickCheck.Instances.CustomPrelude
  hs-source-dirs:     src
  build-depends:
    , base        >=4.12.0.0 && <4.22
    , QuickCheck  >=2.14.2   && <2.15.1
    , splitmix    >=0.1.0.5  && <0.2

  build-depends:
    , array                 >=0.5.3.0  && <0.6
    , bytestring            >=0.10.8.2 && <0.13
    , case-insensitive      >=1.2.0.11 && <1.3
    , containers            >=0.6.0.1  && <0.8
    , data-fix              >=0.3      && <0.4
    , hashable              >=1.4.4.0  && <1.6
    , integer-logarithms    >=1.0.3.1   && <1.1
    , old-time              >=1.1.0.0  && <1.2
    , OneTuple              >=0.4.2    && <0.5
    , primitive             >=0.9.0.0  && <0.10
    , scientific            >=0.3.8.0  && <0.4
    , strict                >=0.5      && <0.6
    , tagged                >=0.8.8    && <0.9
    , text                  >=1.2.3.0  && <1.3  || >=2.0 && <2.2
    , text-short            >=0.1.4    && <0.2
    , these                 >=1.2.1    && <1.3
    , time-compat           >=1.9.4    && <1.10
    , transformers          >=0.5.6.2  && <0.7
    , unordered-containers  >=0.2.20   && <0.3
    , uuid-types            >=1.0.6    && <1.1
    , vector                >=0.13.2.0 && <0.14

  if impl(ghc <9.4)
    build-depends: data-array-byte >=0.1.0.1 && <0.2

  ghc-options:        -Wall

test-suite self-test
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  main-is:          Tests.hs
  hs-source-dirs:   test
  build-depends:
    , base
    , containers
    , primitive
    , QuickCheck
    , quickcheck-instances
    , tagged
    , uuid-types

  if impl(ghc >=8.0 && <9.4)
    build-depends: data-array-byte

benchmark bytestring-gen
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  main-is:          ByteString.hs
  hs-source-dirs:   bench
  build-depends:
    , base
    , bytestring
    , QuickCheck
    , quickcheck-instances