packages feed

fast-digits-0.2.0.0: fast-digits.cabal

name:                fast-digits
version:             0.2.0.0
synopsis:            The fast library for integer-to-digits conversion.
description:         Convert an integer to digits and back.
                     Usually this library is twice as fast as "Data.Digits".
                     For small bases and long numbers it may be up to 40 times faster.
homepage:            https://github.com/Bodigrim/fast-digits
license:             GPL-3
license-file:        LICENSE
author:              Andrew Lelechenko
maintainer:          andrew.lelechenko@gmail.com
category:            Data
build-type:          Simple
cabal-version:       >=1.10

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

library
  exposed-modules:       Data.FastDigits
                       , Data.FastDigits.Internal
  build-depends:         base >=4.8 && < 5
                       , integer-gmp >=1.0
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall

test-suite tests
  type:                exitcode-stdio-1.0
  main-is:             Tests.hs
  build-depends:         base
                       , tasty
                       , tasty-quickcheck
                       , tasty-smallcheck
                       , QuickCheck
                       , smallcheck
                       , digits
                       , fast-digits
  hs-source-dirs:      tests
  default-language:    Haskell2010
  ghc-options:         -Wall

benchmark bench
  type:                exitcode-stdio-1.0
  main-is:             Bench.hs
  hs-source-dirs:      bench
  build-depends:         base
                       , criterion
                       , digits
                       , fast-digits
  default-language:    Haskell2010
  ghc-options:         -O2