Removed support for optparse-applicative versions older than 0.10.
Debian stable has 0.10.0.
This commit is contained in:
parent
38215b7463
commit
aea694ed3f
4 changed files with 3 additions and 6 deletions
4
Test.hs
4
Test.hs
|
@ -112,15 +112,11 @@ main ps = do
|
|||
)
|
||||
where
|
||||
parseOpts pprefs pinfo args =
|
||||
#if MIN_VERSION_optparse_applicative(0,10,0)
|
||||
case execParserPure pprefs pinfo args of
|
||||
(Options.Applicative.Failure failure) -> do
|
||||
let (msg, _exit) = renderFailure failure "git-annex test"
|
||||
error msg
|
||||
v -> handleParseResult v
|
||||
#else
|
||||
handleParseResult $ execParserPure pprefs pinfo args
|
||||
#endif
|
||||
|
||||
ingredients :: [Ingredient]
|
||||
ingredients =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue