File: binary-parsers.cabal

package info (click to toggle)
haskell-binary-parsers 0.2.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,268 kB
  • ctags: 3
  • sloc: haskell: 2,151; makefile: 5
file content (110 lines) | stat: -rw-r--r-- 3,602 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name:                binary-parsers
version:             0.2.3.0
synopsis:            Extends binary with parsec/attoparsec style parsing combinators.
description:         Extends binary with parsec/attoparsec style parsing combinators.
license:             BSD3
license-file:        LICENSE
author:              Winterland
maintainer:          drkoster@qq.com
copyright:           (c) 2016 Winterland       
category:            Data
build-type:          Simple
extra-source-files:    ChangeLog.md
                     , README.md
                     , bench/json-data/*.json
                     , tests/json-data/*.json
                     , bench/http-request.txt

cabal-version:       >=1.10
homepage:            https://github.com/winterland1989/binary-parsers
bug-reports:         https://github.com/winterland1989/binary-parsers/issues

source-repository head
  type:     git
  location: git://github.com/winterland1989/binary-parsers.git

library
    exposed-modules:    Data.Binary.Parser
                    ,   Data.Binary.Parser.Word8
                    ,   Data.Binary.Parser.Char8
                    ,   Data.Binary.Parser.Numeric

    build-depends:      base == 4.*
                    ,   bytestring == 0.10.*
                    ,   binary >= 0.7 && < 0.9
                    ,   bytestring-lexing == 0.5.*
                    ,   scientific > 0.3

    default-language:    Haskell2010
    ghc-options:      -Wall

benchmark criterion
    other-modules:       Aeson
                    ,    AesonBP
                    ,    Common
                    ,    HttpReq
                    ,    Network.Wai.Handler.Warp.ReadInt
                    ,    Network.Wai.Handler.Warp.RequestHeader

    build-depends:      base
                    ,   deepseq
                    ,   bytestring
                    ,   binary-parsers
                    ,   binary
                    ,   attoparsec
                    ,   criterion == 1.1.*
                    ,   scientific
                    ,   text
                    ,   vector
                    ,   directory
                    ,   filepath
                    ,   unordered-containers
                    ,   http-types
                    ,   case-insensitive
                    ,   scanner

    default-language: Haskell2010
    hs-source-dirs:   bench
    main-is:          Bench.hs
    type:             exitcode-stdio-1.0
    ghc-options:      -O2


test-suite tests
  type:           exitcode-stdio-1.0
  hs-source-dirs: tests .
  main-is:        Main.hs
  other-modules:  QC.ByteString
                , QC.Combinator
                , QC.Common
                , Aeson
                , AesonBP
                , JSON

  default-language: Haskell2010
  ghc-options: -Wall -threaded -rtsopts

  build-depends:    base >= 4 && < 5
                ,   deepseq
                ,   bytestring
                ,   bytestring-lexing
                ,   binary
                ,   QuickCheck >= 2.7
                ,   quickcheck-unicode
                ,   scientific
                ,   tasty >= 0.11
                ,   tasty-quickcheck >= 0.8
                ,   tasty-hunit >= 0.8
                ,   quickcheck-instances >= 0.3
                ,   attoparsec
                ,   scientific
                ,   text
                ,   vector
                ,   directory
                ,   filepath
                ,   unordered-containers

  if !impl(ghc >= 8.0)
    -- Data.Semigroup && Control.Monad.Fail are available in base-4.9+
    build-depends: fail == 4.9.*,
                   semigroups >=0.16.1 && <0.19