packages feed

haskus-utils-variant-3.3: haskus-utils-variant.cabal

name:                haskus-utils-variant
version:             3.3
synopsis:            Variant and EADT
license:             BSD3
license-file:        LICENSE
author:              Sylvain Henry
maintainer:          sylvain@haskus.fr
homepage:            https://www.haskus.org
copyright:           Sylvain Henry 2020
category:            System
build-type:          Simple
cabal-version:       1.20

description:
   Variant (extensible sum type) and EADT (extensible recursive sum type)
   datatypes. Documentation can be found at https://docs.haskus.org

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

library
  exposed-modules:
    Haskus.Utils.ContFlow
    Haskus.Utils.Variant
    Haskus.Utils.Variant.VEither
    Haskus.Utils.Variant.Excepts
    Haskus.Utils.Variant.Syntax
    Haskus.Utils.VariantF
    Haskus.Utils.EADT
    Haskus.Utils.EADT.TH
    Haskus.Utils.EGADT

  other-modules:

  build-depends:       
      base                      >= 4.9 && < 5.0
   ,  transformers
   ,  deepseq
   ,  exceptions                >= 0.9
   ,  template-haskell
   ,  haskus-utils-types        >= 1.5
   ,  haskus-utils-data         >= 1.2
   ,  mtl                       >= 2.2

  ghc-options:          -Wall
  default-language:     Haskell2010
  hs-source-dirs:       src/lib

test-suite tests
   type:                exitcode-stdio-1.0
   main-is:             Main.hs
   hs-source-dirs:      src/tests
   ghc-options:         -Wall -threaded
   default-language:    Haskell2010
   other-modules:
         Variant
      ,  EADT

   build-depends:
         base                    >= 4.9 && < 5.0
      ,  haskus-utils-variant
      ,  haskus-utils-types
      ,  haskus-utils-data
      ,  tasty                   >= 0.11
      ,  tasty-quickcheck        >= 0.8
      ,  doctest                 >= 0.16

benchmark bench
   type:                exitcode-stdio-1.0
   main-is:             Main.hs
   hs-source-dirs:      src/bench
   ghc-options:         -Wall -threaded
   default-language:    Haskell2010
   build-depends:
         base                    >= 4.9 && < 5.0
      ,  haskus-utils-variant
      ,  criterion
      ,  QuickCheck
      ,  deepseq