cabal-version: 1.20
name: haskus-utils-variant
version: 2.0.3
license: BSD3
license-file: LICENSE
copyright: Sylvain Henry 2018
maintainer: sylvain@haskus.fr
author: Sylvain Henry
homepage: http://www.haskus.org
synopsis: Variant and EADT
description:
    Variant (extensible sum type) and EADT (extensible recursive sum type)
    datatypes. Documentation can be found at https://docs.haskus.org
category: System
build-type: Simple

source-repository head
    type: git
    location: git://github.com/haskus/haskus-utils.git

library
    exposed-modules:
        Haskus.Utils.ContFlow
        Haskus.Utils.Variant
        Haskus.Utils.Variant.Flow
        Haskus.Utils.Variant.Cont
        Haskus.Utils.Variant.Syntax
        Haskus.Utils.EADT
        Haskus.Utils.EADT.TH
    hs-source-dirs: src/lib
    default-language: Haskell2010
    ghc-options: -Wall
    build-depends:
        base >=4.9 && <4.12,
        template-haskell >=2.13.0.0 && <2.14,
        haskus-utils-types ==1.1.*,
        haskus-utils-data ==1.1.*

test-suite tests
    type: exitcode-stdio-1.0
    main-is: Main.hs
    hs-source-dirs: src/tests
    other-modules:
        Variant
    default-language: Haskell2010
    ghc-options: -Wall -threaded
    build-depends:
        base >=4.11.1.0 && <4.12,
        haskus-utils-variant -any,
        tasty >=0.11 && <1.2,
        tasty-quickcheck >=0.8 && <0.11