packages feed

salve-2.0.0.3: salve.cabal

cabal-version: 2.2

name: salve
version: 2.0.0.3

synopsis: Semantic version numbers and constraints.
description:
  Salve provides semantic version (SemVer) numbers and constraints (ranges).

build-type: Simple
category: Distribution
extra-source-files: CHANGELOG.markdown README.markdown
license-file: LICENSE.markdown
license: MIT
maintainer: Taylor Fausak

source-repository head
  location: https://github.com/tfausak/salve
  type: git

flag pedantic
  default: False
  description: Enables @-Werror@, which turns warnings into errors.
  manual: True

common library
  build-depends:
    , base >= 4.16.0 && < 4.19
  default-language: Haskell2010
  ghc-options:
    -Weverything
    -Wno-all-missed-specialisations
    -Wno-implicit-prelude
    -Wno-missing-deriving-strategies
    -Wno-missing-exported-signatures
    -Wno-missing-kind-signatures
    -Wno-missing-safe-haskell-mode
    -Wno-prepositive-qualified-module
    -Wno-safe

  if flag(pedantic)
    ghc-options: -Werror

common executable
  import: library

  build-depends: salve
  ghc-options:
    -rtsopts
    -threaded
    -Wno-unused-packages

library
  import: library

  exposed-modules:
    Salve
    Salve.Internal
  hs-source-dirs: source/library

test-suite salve-test-suite
  import: executable

  build-depends:
    , HUnit >= 1.6.1 && < 1.7
  hs-source-dirs: source/test-suite
  main-is: Main.hs
  type: exitcode-stdio-1.0