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