packages feed

spdx-0.1.1.0: spdx.cabal

name:                spdx
version:             0.1.1.0
synopsis:            SPDX license expression language
description:         Implementation of <http://spdx.org/sites/spdx/files/SPDX-2.0.pdf SPDX> related functionality.
homepage:            https://github.com/phadej/spdx
license:             BSD3
license-file:        LICENSE
author:              Oleg Grenrus
maintainer:          Oleg Grenrus <oleg.grenrus@iki.fi>
copyright:           (c) 2015 Oleg Grenrus
category:            Data
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

flag developer
  description:       Whether to build development tools
  default:           False
  manual:            True

library
  default-language:    Haskell2010
  exposed-modules:     Data.SPDX,
                       Data.SPDX.LatticeSyntax
  other-modules:       Data.SPDX.Licenses,
                       Data.SPDX.Types,
                       Data.SPDX.Parser,
                       Data.SPDX.Ranges
  other-extensions:    CPP
                       DeriveFunctor,
                       GeneralizedNewtypeDeriving,
                       DeriveFoldable,
                       DeriveTraversable,
                       DeriveGeneric,
                       DeriveDataTypeable
  hs-source-dirs:      src/
  ghc-options:         -Wall
  build-depends:       base              >=4.5 && <4.9,
                       transformers      >=0.3 && <0.5
  if impl(ghc >= 7.4 && < 7.5)
    build-depends: ghc-prim

test-suite test
  type:                exitcode-stdio-1.0
  main-is:             Tests.hs
  default-language:    Haskell2010
  hs-source-dirs:      tests
  ghc-options:         -Wall
  build-depends:       base              >=4.5  && <4.9,
                       tasty             >=0.10 && <0.11,
                       tasty-quickcheck  >=0.8  && <0.9,
                       spdx

executable spdx-data
  if !flag(developer)
    buildable:         False
  main-is:             Main.hs
  default-language:    Haskell2010
  hs-source-dirs:      dev
  build-depends:       base              >=4.5  && <4.9,
                       xml               >=1.3  && <1.4