File: trifecta.cabal

package info (click to toggle)
haskell-trifecta 2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 256 kB
  • sloc: haskell: 2,149; makefile: 3
file content (126 lines) | stat: -rw-r--r-- 3,652 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name:          trifecta
category:      Text, Parsing, Diagnostics, Pretty Printer, Logging
version:       2
license:       BSD3
cabal-version: >= 1.10
license-file:  LICENSE
author:        Edward A. Kmett
maintainer:    Edward A. Kmett <ekmett@gmail.com>
stability:     experimental
homepage:      http://github.com/ekmett/trifecta/
bug-reports:   http://github.com/ekmett/trifecta/issues
copyright:     Copyright (C) 2010-2017 Edward A. Kmett
synopsis:      A modern parser combinator library with convenient diagnostics
description:
  A modern parser combinator library with slicing and Clang-style colored diagnostics

build-type:    Custom
tested-with:   GHC == 7.4.2
             , GHC == 7.6.3
             , GHC == 7.8.4
             , GHC == 7.10.3
             , GHC == 8.0.2
             , GHC == 8.2.2
             , GHC == 8.4.3
             , GHC == 8.6.1

extra-source-files:
  examples/*.hs
  examples/LICENSE
  examples/rfc2616/*.hs
  examples/RFC2616.txt
  examples/trifecta-examples.cabal
  .travis.yml
  CHANGELOG.markdown
  README.markdown
  Warning.hs

source-repository head
  type: git
  location: https://github.com/ekmett/trifecta

custom-setup
  setup-depends:
    base          >= 4 && < 5,
    Cabal,
    cabal-doctest >= 1 && < 1.1

library
  exposed-modules:
    Text.Trifecta
    Text.Trifecta.Combinators
    Text.Trifecta.Delta
    Text.Trifecta.Highlight
    Text.Trifecta.Parser
    Text.Trifecta.Rendering
    Text.Trifecta.Result
    Text.Trifecta.Rope
    Text.Trifecta.Tutorial
    Text.Trifecta.Util.Array
    Text.Trifecta.Util.IntervalMap
    Text.Trifecta.Util.It

  other-modules:
    Text.Trifecta.Instances
    Text.Trifecta.Util.Combinators

  build-depends:
    ansi-wl-pprint       >= 0.6.6   && < 0.7,
    ansi-terminal        >= 0.6     && < 0.9,
    array                >= 0.3.0.2 && < 0.6,
    base                 >= 4.4     && < 5,
    blaze-builder        >= 0.3.0.1 && < 0.5,
    blaze-html           >= 0.5     && < 0.10,
    blaze-markup         >= 0.5     && < 0.9,
    bytestring           >= 0.9.1   && < 0.11,
    charset              >= 0.3.5.1 && < 1,
    comonad              >= 4       && < 6,
    containers           >= 0.3     && < 0.7,
    deepseq              >= 1.2.0.1 && < 1.5,
    fingertree           >= 0.1     && < 0.2,
    ghc-prim,
    hashable             >= 1.2.1   && < 1.3,
    lens                 >= 4.0     && < 5,
    mtl                  >= 2.0.1   && < 2.3,
    parsers              >= 0.12.1  && < 1,
    profunctors          >= 4.0     && < 6,
    reducers             >= 3.10    && < 4,
    semigroups           >= 0.8.3.1 && < 1,
    transformers         >= 0.2     && < 0.6,
    unordered-containers >= 0.2.1   && < 0.3,
    utf8-string          >= 0.3.6   && < 1.1

  default-language: Haskell2010
  hs-source-dirs:   src
  ghc-options:      -O2 -Wall -fobject-code

  -- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
  else
    build-depends: fail == 4.9.*

test-suite doctests
  buildable: false
  type:              exitcode-stdio-1.0
  main-is:           doctests.hs
  ghc-options:       -Wall -threaded
  x-doctest-options: -fobject-code
  hs-source-dirs:    tests
  default-language:  Haskell2010
  build-depends:
    base,
    doctest >= 0.11.1 && < 0.17,
    trifecta

test-suite quickcheck
  type:    exitcode-stdio-1.0
  main-is: QuickCheck.hs
  default-language: Haskell2010
  build-depends:
    base == 4.*,
    parsers,
    QuickCheck,
    trifecta
  ghc-options: -Wall -threaded
  hs-source-dirs: tests