packages feed

spdx-1.1: spdx.cabal

cabal-version:      3.4
name:               spdx
version:            1.1
synopsis:           SPDX license expression language, Extras
category:           Data
description:
  Cabal provides SPDX types. This package provides some extras.

homepage:           https://github.com/phadej/spdx
license:            BSD-3-Clause
license-file:       LICENSE
author:             Oleg Grenrus <oleg.grenrus@iki.fi>
maintainer:         Oleg Grenrus <oleg.grenrus@iki.fi>
copyright:          (c) 2015-2018 Oleg Grenrus
build-type:         Simple
extra-source-files:
  CHANGELOG.md
  README.md

tested-with:        GHC ==9.6.6 || ==9.8.2 || ==9.10.1

source-repository head
  type:     git
  location: https://github.com/phadej/spdx

common language
  default-language:   Haskell2010
  default-extensions:
    BangPatterns
    DeriveTraversable
    DerivingStrategies
    GADTs
    PatternSynonyms
    RankNTypes
    RoleAnnotations
    ScopedTypeVariables
    StandaloneDeriving
    StandaloneKindSignatures
    TypeApplications

library
  default-language: Haskell2010
  exposed-modules:  Distribution.SPDX.Extra
  other-extensions:
    CPP
    DeriveDataTypeable
    DeriveFoldable
    DeriveFunctor
    DeriveTraversable

  hs-source-dirs:   src/
  ghc-options:      -Wall
  build-depends:
    , base          >=4.18.2.1  && <4.21
    , Cabal-syntax  ^>=3.10.3.0 || ^>=3.12.1.0
    , containers    >=0.6.7     && <0.8
    , puresat       ^>=0.1
    , transformers  >=0.6.1.0   && <0.7

test-suite test
  import:         language
  type:           exitcode-stdio-1.0
  main-is:        Tests.hs
  other-modules:  Generators
  hs-source-dirs: tests
  ghc-options:    -Wall
  build-depends:
    , base
    , Cabal-syntax
    , spdx
    , tasty             ^>=1.5
    , tasty-quickcheck  ^>=0.11

benchmark bench
  type:             exitcode-stdio-1.0
  main-is:          Bench.hs
  other-modules:    Generators
  default-language: Haskell98
  hs-source-dirs:   tests bench
  ghc-options:      -Wall
  build-depends:
    , base
    , Cabal-syntax
    , QuickCheck        ^>=2.15.0.1
    , spdx
    , tasty-quickcheck  ^>=0.11