name: fast-digits
version: 0.3.2.0
x-revision: 1
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-doc-files:
  changelog.md
  README.md
tested-with:
  GHC ==9.0.2 GHC ==9.2.8 GHC ==9.4.8 GHC ==9.6.7 GHC ==9.8.4 GHC ==9.10.2 GHC ==9.12.2

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

library
  exposed-modules:
    Data.FastDigits
  hs-source-dirs: src
  default-language: Haskell2010
  ghc-options: -Wall -O2 -Wcompat
  build-depends:
    base >=4.15 && <5,
    ghc-bignum <1.4,
    fast-digits-internal

library fast-digits-internal
  exposed-modules:
    Data.FastDigits.Internal
  hs-source-dirs: src-internal
  default-language: Haskell2010
  ghc-options: -Wall -O2 -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 -Wcompat
  build-depends:
    base,
    tasty <1.6,
    tasty-quickcheck <0.12,
    tasty-smallcheck <0.9,
    QuickCheck <2.17,
    smallcheck <1.3,
    -- 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 -Wcompat
  build-depends:
    base,
    -- digits,
    fast-digits,
    tasty-bench >= 0.4 && <0.5