packages feed

d10-1.0.1.1: d10.cabal

cabal-version: 3.0

name: d10
version: 1.0.1.1
category: Data
synopsis: Digits 0-9

description:
    Data types representing the digits zero through nine.

    Each of the following modules defines a different type named
    @D10@, all of which are different representations of the same
    concept "D10.Char", "D10.Num", "D10.Safe".

homepage:    https://github.com/typeclasses/d10
bug-reports: https://github.com/typeclasses/d10/issues

author:     Chris Martin
maintainer: Chris Martin, Julie Moronuki

copyright: 2018-2021 Mission Valley Software LLC
license: MIT
license-file: license.txt

extra-source-files: *.md

source-repository head
    type: git
    location: https://github.com/typeclasses/d10

common language
    default-language: Haskell2010
    ghc-options: -Wall
    default-extensions:
        DeriveAnyClass DeriveDataTypeable DeriveGeneric
        DeriveLift DerivingStrategies InstanceSigs
        QuasiQuotes ScopedTypeVariables TypeApplications

common library-dependencies
    build-depends:
        base ^>= 4.14 || ^>= 4.15 || ^>= 4.16 || ^>= 4.17
      , hashable ^>= 1.3.5 || ^>= 1.4
      , template-haskell ^>= 2.16 || ^>= 2.17 || ^>= 2.18 || ^>= 2.19

common test-language
    import: language
    default-extensions:
        GeneralizedNewtypeDeriving
        TemplateHaskell

common test-dependencies
    import: library-dependencies
    build-depends:
        d10
      , hedgehog ^>= 1.0.5 || ^>= 1.1 || ^>= 1.2

common test
    import: test-language
    import: test-dependencies
    hs-source-dirs: test
    build-depends:
        d10-test

library
    import: language
    import: library-dependencies
    hs-source-dirs: src
    exposed-modules:
        D10.Char
            D10.Char.Arithmetic
            D10.Char.Conversions
            D10.Char.Quotes
            D10.Char.Splices
            D10.Char.Type
            D10.Char.Unsafe
        D10.Num
            D10.Num.Arithmetic
            D10.Num.Conversions
            D10.Num.Quotes
            D10.Num.Splices
            D10.Num.Type
            D10.Num.Unsafe
        D10.Safe
            D10.Safe.Arithmetic
            D10.Safe.Conversions
            D10.Safe.Quotes
            D10.Safe.Splices
            D10.Safe.Type
        D10.Predicate

library d10-test
    import: test-language
    import: test-dependencies
    hs-source-dirs: library/d10-test
    exposed-modules:
        AssertQFails
        Fallible

test-suite char
    import: test
    type: exitcode-stdio-1.0
    main-is: char.hs

test-suite num
    import: test
    type: exitcode-stdio-1.0
    main-is: num.hs

test-suite safe
    import: test
    type: exitcode-stdio-1.0
    main-is: safe.hs