packages feed

fast-digits-0.3.1.0: fast-digits.cabal

name: fast-digits
version: 0.3.1.0
license: GPL-3
license-file: LICENSE
maintainer: andrew.lelechenko@gmail.com
author: Andrew Lelechenko
homepage: https://github.com/Bodigrim/fast-digits
synopsis: Integer-to-digits conversion.
description:
  Convert an integer to digits and back.
  This library is both asymptotically (O(n^1.4) vs. O(n^2))
  and practically (2x-40x for typical inputs)
  faster than "Data.Digits".
category: Data
build-type: Simple
cabal-version: 2.0
extra-source-files:
  changelog.md
  README.md
tested-with:
  GHC ==7.10.3 GHC ==8.0.2 GHC ==8.2.2 GHC ==8.4.4 GHC ==8.6.5 GHC ==8.8.4 GHC ==8.10.4 GHC ==9.0.1

source-repository head
  type: git
  location: git://github.com/Bodigrim/fast-digits.git

library
  exposed-modules:
    Data.FastDigits
  hs-source-dirs: src
  default-language: Haskell2010
  ghc-options: -Wall -O2 -fno-warn-deprecations
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat
  build-depends:
    base >=4.8 && <5,
    integer-gmp >=1.0,
    fast-digits-internal

library fast-digits-internal
  exposed-modules:
    Data.FastDigits.Internal
  hs-source-dirs: src-internal
  default-language: Haskell2010
  ghc-options: -Wall -O2
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat
  build-depends:
    base >=4.8 && <5

test-suite fast-digits-tests
  type: exitcode-stdio-1.0
  main-is: Tests.hs
  hs-source-dirs: tests
  default-language: Haskell2010
  ghc-options: -Wall
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat
  build-depends:
    base,
    tasty,
    tasty-quickcheck,
    tasty-smallcheck,
    QuickCheck,
    smallcheck,
    -- digits,
    fast-digits,
    fast-digits-internal

benchmark fast-digits-bench
  type: exitcode-stdio-1.0
  main-is: Bench.hs
  hs-source-dirs: bench
  default-language: Haskell2010
  ghc-options: -Wall -O2
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat
  build-depends:
    base,
    -- digits,
    fast-digits,
    tasty-bench >= 0.2.4