packages feed

fast-arithmetic-0.3.3.1: fast-arithmetic.cabal

name:                fast-arithmetic
version:             0.3.3.1
synopsis:            Fast functions on integers.
description:         Fast functions for number theory and combinatorics with a high level of safety guaranteed by [ATS](http://www.ats-lang.org/).
homepage:            https://github.com/vmchale/fast-arithmetic#readme
license:             BSD3
license-file:        LICENSE
author:              Vanessa McHale
maintainer:          vamchale@gmail.com
copyright:           Copyright: (c) 2018 Vanessa McHale
category:            Numerics, Math, Algorithms, Number Theory, Combinatorics, FFI, ATS
build-type:          Custom
extra-source-files:  ats-src/*.dats
                   , atspkg.dhall
                   , dist-newstyle/lib/empty
extra-doc-files:     README.md
cabal-version:       1.18

Flag development {
  Description: Enable `-Werror` and don't clean ATS libraries between builds.
  manual: True
  default: False
}

custom-setup
  setup-depends:   base
                 , ats-pkg >= 2.6.1.0
                 , Cabal

library
  hs-source-dirs:      src
  extra-libraries:     numbertheory
  extra-lib-dirs:      dist-newstyle/lib
  exposed-modules:     Numeric.Pure
                     , Numeric.Integer
                     , Numeric.NumberTheory
                     , Numeric.Combinatorics
  other-modules:       Numeric.Common
  build-depends:       base >= 4.10 && < 5
                     , composition-prelude
                     , gmpint
  default-language:    Haskell2010
  if flag(development)
    ghc-options:       -Werror
  if impl(ghc >= 8.0)
    ghc-options:       -Wincomplete-uni-patterns -Wincomplete-record-updates -Wcompat
  ghc-options:         -Wall -optc-mtune=native -optc-flto -optc-O3

test-suite fast-arithmetic-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , fast-arithmetic
                     , hspec
                     , QuickCheck
                     , arithmoi
                     , combinat
  if flag(development)
    ghc-options: -Werror
  if impl(ghc >= 8.0)
    ghc-options:       -Wincomplete-uni-patterns -Wincomplete-record-updates -Wcompat 
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  default-language:    Haskell2010

benchmark fast-arithmetic-bench
  type:                exitcode-stdio-1.0
  hs-source-dirs:      bench
  main-is:             Bench.hs
  build-depends:       base
                     , fast-arithmetic
                     , criterion
                     , arithmoi
                     , combinat
  if flag(development)
    ghc-options: -Werror
  if impl(ghc >= 8.0)
    ghc-options:       -Wincomplete-uni-patterns -Wincomplete-record-updates -Wcompat
  ghc-options:         -Wall
  default-language:    Haskell2010

source-repository head
  type:     git
  location: git@github.com:vmchale/fast-arithmetic.git