File: integer-conversion.cabal

package info (click to toggle)
haskell-integer-conversion 0.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 96 kB
  • sloc: haskell: 294; makefile: 3
file content (81 lines) | stat: -rw-r--r-- 2,167 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cabal-version:      2.2
name:               integer-conversion
version:            0.1.1
synopsis:           Conversion from strings to Integer
category:           Data
description:
  The naive @foldl' (\acc d -> acc * 10 + d) 0@ is expensive (quadratic!) for large @Integer@s.
  This package provides sub-quadratic implementation.

homepage:           https://github.com/phadej/integer-conversion
bug-reports:        https://github.com/phadej/integer-conversion/issues
license:            BSD-3-Clause
license-file:       LICENSE
author:             Oleg Grenrus <oleg.grenrus@iki.fi>
maintainer:         Oleg.Grenrus <oleg.grenrus@iki.fi>
copyright:          (c) 2023 Oleg Grenrus
build-type:         Simple
extra-source-files: ChangeLog.md
tested-with:
  GHC ==8.6.5
   || ==8.8.4
   || ==8.10.7
   || ==9.0.2
   || ==9.2.8
   || ==9.4.8
   || ==9.6.5
   || ==9.8.2
   || ==9.10.1

source-repository head
  type:     git
  location: https://github.com/phadej/integer-conversion.git

library
  default-language: Haskell2010
  hs-source-dirs:   src
  exposed-modules:  Data.Integer.Conversion
  build-depends:
    , base        >=4.12.0.0   && <5
    , bytestring  ^>=0.10.8.1 || ^>=0.11.4.0 || ^>=0.12.0.2
    , primitive   ^>=0.9.0.0
    , text        ^>=1.2.3.0  || ^>=2.0.1    || ^>=2.1

test-suite integer-conversion-tests
  default-language: Haskell2010
  hs-source-dirs:   tests src-other
  type:             exitcode-stdio-1.0
  main-is:          integer-conversion-tests.hs
  build-depends:
    , base
    , bytestring
    , integer-conversion
    , text

  -- test dependencies
  build-depends:
    , QuickCheck        >=2.14.3
    , tasty             >=1.4.3
    , tasty-quickcheck  ^>=0.11

  other-modules:
    Alternative
    Naive

benchmark integer-conversion-bench
  default-language: Haskell2010
  ghc-options:      -threaded -rtsopts
  type:             exitcode-stdio-1.0
  main-is:          integer-conversion-bench.hs
  hs-source-dirs:   bench src-other
  build-depends:
    , base
    , bytestring
    , integer-conversion
    , text

  -- bench dependencies
  build-depends:    tasty-bench ^>=0.3.4
  other-modules:
    Alternative
    Naive