File: scientific.cabal

package info (click to toggle)
haskell-scientific 0.2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 80 kB
  • sloc: haskell: 566; makefile: 2
file content (63 lines) | stat: -rw-r--r-- 2,508 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
name:                scientific
version:             0.2.0.2
synopsis:            Arbitrary-precision floating-point numbers represented using scientific notation
description:         A @Scientific@ number is an arbitrary-precision floating-point number
                     represented using scientific notation.
                     .
                     A scientific number with 'coefficient' @c@ and
                     'base10Exponent' @e@ corresponds to the
                     'Fractional' number: @'fromInteger' c * 10 '^^' e@
                     .
                     Its primary use-case is to serve as the target of
                     parsing floating point numbers. Since the textual
                     representation of floating point numbers use
                     scientific notation they can be efficiently
                     parsed to a @Scientific@ number.
homepage:            https://github.com/basvandijk/scientific
bug-reports:         https://github.com/basvandijk/scientific/issues
license:             BSD3
license-file:        LICENSE
author:              Bas van Dijk
maintainer:          Bas van Dijk <v.dijk.bas@gmail.com>
category:            Data
build-type:          Simple
cabal-version:       >=1.10

source-repository head
  type:     git
  location: git://github.com/basvandijk/scientific.git

library
  exposed-modules:     Data.Scientific
  other-extensions:    DeriveDataTypeable, BangPatterns
  ghc-options:         -Wall
  build-depends:       base     >= 4.3   && < 4.8
                     , deepseq  >= 1.3   && < 1.4
                     , text     >= 0.8   && < 1.2
                     , hashable >= 1.1.2 && < 1.3
  hs-source-dirs:      src
  default-language:    Haskell2010

test-suite test-scientific
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  main-is:          test.hs
  default-language: Haskell2010
  ghc-options:      -Wall

  build-depends: scientific
               , base             >= 4.3   && < 4.8
               , tasty            >= 0.3.1 && < 0.9
               , tasty-smallcheck >= 0.2   && < 0.9
               , smallcheck       >= 1.0   && < 1.2
               , text             >= 0.8   && < 1.3

benchmark bench-scientific
  type:             exitcode-stdio-1.0
  hs-source-dirs:   bench
  main-is:          bench.hs
  default-language: Haskell2010
  ghc-options:      -O2
  build-depends:    scientific
                  , base       >= 4.3 && < 4.8
                  , criterion  >= 0.5 && < 0.12