packages feed

vicinity-0.1.0: vicinity.cabal

name: vicinity
version: 0.1.0
description: Please see the README on Github at <https://github.com/andrewthad/vicinity#readme>
homepage: https://github.com/andrewthad/vicinity#readme
bug-reports: https://github.com/andrewthad/vicinity/issues
author: Andrew Martin
maintainer: andrew.thaddeus@gmail.com
copyright: 2018 Andrew Martin
license: BSD3
license-file: LICENSE
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
  ChangeLog.md
  README.md

flag slow
  description:
    Build the library with provably-correct arithmetic on natural numbers. Not recommended.
  default: False
  manual: False

source-repository head
  type: git
  location: https://github.com/andrewthad/vicinity

library
  hs-source-dirs: src
  if flag(slow)
    hs-source-dirs: src-slow
  else
    hs-source-dirs: src-fast
  build-depends:
      base >=4.7 && <5
    , semigroups >= 0.17 && < 0.19
  exposed-modules:
    Data.Vicinity
    Data.Vicinities
  other-modules:
    Data.Nat
    Data.Nat.Arithmetic
  default-language: Haskell2010

test-suite test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
    test
  build-depends:
      base >=4.7 && <5
    , vicinity
    , QuickCheck
    , quickcheck-classes == 0.3.1
    , containers
  default-language: Haskell2010

test-suite doctest
  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is: Doctest.hs
  build-depends:
      base
    , vicinity
    , doctest >= 0.10
  default-language:    Haskell2010