1name:                optparse-applicative
2version:             0.15.1.0
3x-revision: 1
4synopsis:            Utilities and combinators for parsing command line options
5description:
6    optparse-applicative is a haskell library for parsing options
7    on the command line, providing a powerful applicative interface
8    for composing these options.
9    .
10    optparse-applicative takes care of reading and validating the
11    arguments passed to the command line, handling and reporting
12    errors, generating a usage line, a comprehensive help screen,
13    and enabling context-sensitive bash completions.
14    .
15    See the included README for detailed instructions and examples,
16    which is also available on github
17    <https://github.com/pcapriotti/optparse-applicative>.
18license:             BSD3
19license-file:        LICENSE
20author:              Paolo Capriotti, Huw Campbell
21maintainer:          huw.campbell@gmail.com
22copyright:           (c) 2012-2017 Paolo Capriotti <paolo@capriotti.io>
23category:            System, CLI, Options, Parsing
24build-type:          Simple
25cabal-version:       >= 1.8
26extra-source-files:  CHANGELOG.md
27                     README.md
28                     tests/alt.err.txt
29                     tests/cabal.err.txt
30                     tests/carry.err.txt
31                     tests/commands.err.txt
32                     tests/commands_header.err.txt
33                     tests/commands_header_full.err.txt
34                     tests/dropback.err.txt
35                     tests/hello.err.txt
36                     tests/helponempty.err.txt
37                     tests/helponemptysub.err.txt
38                     tests/long_equals.err.txt
39                     tests/formatting.err.txt
40                     tests/nested.err.txt
41                     tests/optional.err.txt
42                     tests/nested_optional.err.txt
43                     tests/subparsers.err.txt
44
45homepage:            https://github.com/pcapriotti/optparse-applicative
46bug-reports:         https://github.com/pcapriotti/optparse-applicative/issues
47tested-with:
48  GHC==7.0.4,
49  GHC==7.2.2,
50  GHC==7.4.2,
51  GHC==7.6.3,
52  GHC==7.8.4,
53  GHC==7.10.3,
54  GHC==8.0.2,
55  GHC==8.2.2,
56  GHC==8.4.4,
57  GHC==8.6.5,
58  GHC==8.8.1
59
60source-repository head
61  type:     git
62  location: https://github.com/pcapriotti/optparse-applicative.git
63
64library
65  hs-source-dirs:      src
66  ghc-options:         -Wall
67
68  -- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
69  if impl(ghc >= 8.0)
70    ghc-options:  -Wno-redundant-constraints -Wcompat -Wnoncanonical-monad-instances
71    if impl(ghc < 8.8)
72      ghc-options: -Wnoncanonical-monadfail-instances
73
74  exposed-modules:     Options.Applicative
75                     , Options.Applicative.Arrows
76                     , Options.Applicative.BashCompletion
77                     , Options.Applicative.Builder
78                     , Options.Applicative.Builder.Completer
79                     , Options.Applicative.Builder.Internal
80                     , Options.Applicative.Common
81                     , Options.Applicative.Extra
82                     , Options.Applicative.Help
83                     , Options.Applicative.Help.Chunk
84                     , Options.Applicative.Help.Core
85                     , Options.Applicative.Help.Levenshtein
86                     , Options.Applicative.Help.Pretty
87                     , Options.Applicative.Help.Types
88                     , Options.Applicative.Types
89                     , Options.Applicative.Internal
90
91  build-depends:       base                            == 4.*
92                     , transformers                    >= 0.2 && < 0.6
93                     , transformers-compat             >= 0.3 && < 0.7
94                     , process                         >= 1.0 && < 1.7
95                     , ansi-wl-pprint                  >= 0.6.8 && < 0.7
96
97  if !impl(ghc >= 8)
98    build-depends:     semigroups                      >= 0.10 && < 0.20
99                     , fail                            == 4.9.*
100
101test-suite tests
102  type:                exitcode-stdio-1.0
103
104  main-is:             test.hs
105
106  ghc-options:         -Wall -threaded -O2 -funbox-strict-fields
107
108  hs-source-dirs:
109                       tests
110
111  other-modules:       Examples.Alternatives
112                     , Examples.Cabal
113                     , Examples.Commands
114                     , Examples.Formatting
115                     , Examples.Hello
116
117  build-depends:       base
118                     , bytestring                      >= 0.9 && < 0.11
119                     , optparse-applicative
120                     , QuickCheck                      >= 2.8 && < 2.15
121
122  if !impl(ghc >= 8)
123    build-depends:     semigroups
124