packages feed

quickcheck-quid-0.0.1.2: quickcheck-quid.cabal

cabal-version:  3.0
name:           quickcheck-quid
version:        0.0.1.2
bug-reports:    https://github.com/jonathanknowles/quickcheck-quid/issues
license:        Apache-2.0
license-file:   LICENSE
author:         Jonathan Knowles
maintainer:     mail@jonathanknowles.net
copyright:      2022–2024 Jonathan Knowles
category:       Testing
synopsis:       Quasi-unique identifiers for QuickCheck
description:
    Quasi-unique identifiers for QuickCheck.

    For the most up-to-date documentation, please view the following page:

    https://github.com/jonathanknowles/quickcheck-quid/blob/main/README.md

extra-doc-files:
    CHANGELOG.md
    README.md

source-repository head
    type: git
    location: https://github.com/jonathanknowles/quickcheck-quid

common dependency-base
    build-depends:base                          >= 4.14.3.0   && < 4.20
common dependency-containers
    build-depends:containers                    >= 0.5.7.0    && < 0.8
common dependency-deepseq
    build-depends:deepseq                       >= 1.4.4.0    && < 1.6
common dependency-extra
    build-depends:extra                         >= 1.5        && < 1.8
common dependency-fmt
    build-depends:fmt                           >= 0.6.1      && < 0.7
common dependency-hashable
    build-depends:hashable                      >= 1.3.0.0    && < 1.5
common dependency-hspec
    build-depends:hspec                         >= 2.7.1      && < 2.12
common dependency-pretty-simple
    build-depends:pretty-simple                 >= 1.0.0.0    && < 4.2
common dependency-primes
    build-depends:primes                        >= 0.2.0.0    && < 0.3
common dependency-QuickCheck
    build-depends:QuickCheck                    >= 2.14       && < 2.15
common dependency-quickcheck-classes
    build-depends:quickcheck-classes            >= 0.6.2.0    && < 0.7
common dependency-text
    build-depends:text                          >= 1.2.3.2    && < 2.2

library
    import:
      , dependency-base
    hs-source-dirs:
        src/public
    exposed-modules:
        Test.QuickCheck.Quid
    default-language:
        Haskell2010
    build-depends:
      , quickcheck-quid:internal

library example
    import:
      , dependency-base
      , dependency-QuickCheck
    hs-source-dirs:
        src/example
    exposed-modules:
        Test.QuickCheck.Quid.Example
    default-language:
        Haskell2010
    build-depends:
      , quickcheck-quid

library internal
    import:
      , dependency-base
      , dependency-containers
      , dependency-deepseq
      , dependency-extra
      , dependency-hashable
      , dependency-QuickCheck
      , dependency-text
    hs-source-dirs:
        src/internal
    exposed-modules:
        Internal.Test.QuickCheck
        Internal.Test.QuickCheck.Quid
        Internal.Test.QuickCheck.Quid.Combinators.Chunk
        Internal.Test.QuickCheck.Quid.Combinators.Prefix
        Internal.Test.QuickCheck.Quid.Combinators.Size
        Internal.Test.QuickCheck.Quid.Representations
        Internal.Test.QuickCheck.Quid.Representations.Decimal
        Internal.Test.QuickCheck.Quid.Representations.Hexadecimal
        Internal.Test.QuickCheck.Quid.Representations.Latin
        Internal.Text.Read
    default-language:
        Haskell2010
    build-depends:

test-suite test
    import:
      , dependency-base
      , dependency-containers
      , dependency-fmt
      , dependency-hspec
      , dependency-pretty-simple
      , dependency-primes
      , dependency-QuickCheck
      , dependency-quickcheck-classes
      , dependency-text
    main-is:
        Spec.hs
    hs-source-dirs:
        src/test
    other-modules:
        Test.QuickCheck.Classes.Hspec
        Test.QuickCheck.QuidSpec
        Test.QuickCheck.Quid.Combinators.PrefixSpec
        Test.QuickCheck.Quid.Representations.DecimalSpec
        Test.QuickCheck.Quid.Representations.HexadecimalSpec
        Test.QuickCheck.Quid.Representations.LatinSpec
        Test.Hspec.Unit
    type: exitcode-stdio-1.0
    default-language:
        Haskell2010
    build-tool-depends:
        hspec-discover:hspec-discover ==2.*
    build-depends:
      , quickcheck-quid
      , quickcheck-quid:internal