Skip to content

Commit 47516ac

Browse files
Merge pull request #61 from docopt/release-0.7.0.8
Release 0.7.0.8
2 parents de4216f + 069bd79 commit 47516ac

File tree

5 files changed

+46
-20
lines changed

5 files changed

+46
-20
lines changed

CHANGELOG.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,50 @@
1-
### 0.7.0.7 (unreleased)
1+
### 0.7.0.8
2+
3+
- Add support for `containers-0.7` [#58](https://github.com/docopt/docopt.hs/pull/58), [#60](https://github.com/docopt/docopt.hs/pull/60)
4+
5+
- Extend Template Haskell Quasi-quotation support to GHC 8.0-8.6. Template Haskell support is no longer optional. The package now supports all GHC's from 8.0 to 9.8. [#56](https://github.com/docopt/docopt.hs/pull/56), [#58](https://github.com/docopt/docopt.hs/pull/58)
6+
7+
### 0.7.0.7
28

39
- update bounds, fix warnings, require ghc 8.0+
410

511
### 0.7.0.6
612

7-
- Fixes issue causing compilation error to happen with ghc-8.8.2 [#33][#34]
13+
- Fixes issue causing compilation error to happen with ghc-8.8.2 [#33](https://github.com/docopt/docopt.hs/issues/33), [#34](https://github.com/docopt/docopt.hs/pull/34)
814

915
### 0.7.0.5
1016

11-
- Fix an issue where in some cases pattern lines were matched out of order [#16]
12-
- Strip leading & trailing newlines from usage, for quasiquoter ease [#28]
13-
- Fix tests run against latest aeson 1.0.2.0 [#29]
17+
- Fix an issue where in some cases pattern lines were matched out of order [#16](https://github.com/docopt/docopt.hs/issues/16)
18+
- Strip leading & trailing newlines from usage, for quasiquoter ease [#28](https://github.com/docopt/docopt.hs/issues/28)
19+
- Fix tests run against latest aeson 1.0.2.0 [#29](https://github.com/docopt/docopt.hs/issues/29)
1420

1521
### 0.7.0.4
1622

17-
- Fix the test suite when run from a distributed tarball [#21]
23+
- Fix the test suite when run from a distributed tarball [#21](https://github.com/docopt/docopt.hs/pull/21)
1824
- Make the test suite more developer-friendly
1925

2026
### 0.7.0.3
2127

22-
- Fix `isPresent` treatment of repeatable arguments/options [#15]
23-
- Fix build failure for stackage inclusion [#20]
28+
- Fix `isPresent` treatment of repeatable arguments/options [#15](https://github.com/docopt/docopt.hs/issues/15)
29+
- Fix build failure for stackage inclusion [#20](https://github.com/docopt/docopt.hs/pull/20)
2430

2531
### 0.7.0.2
2632

27-
- Minor docs/README tweaks [#13]
33+
- Minor docs/README tweaks [#13](https://github.com/docopt/docopt.hs/issues/13)
2834

2935
### 0.7.0.1
3036

3137
- Fix docs in README and in Docopt.hs
3238

3339
# 0.7.0.0
3440

35-
- Add usage parsing QuasiQuoters [#7]
41+
- Add usage parsing QuasiQuoters [#7](https://github.com/docopt/docopt.hs/pull/7)
3642
- Add `docopt` usage parsing QuasiQuoter
3743
- Add `docoptFile` usage parsing QuasiQuoter
3844
- Add `System.Docopt.NoTH` module
3945
- Add `parseUsage`
4046
- Add `parseUsageOrExit`
41-
- New API organization [#10]
47+
- New API organization [#10](https://github.com/docopt/docopt.hs/issues/10)
4248
- Remove `optionsWithUsage`
4349
- Remove `optionsWithUsageDebug`
4450
- Remove `optionsWithUsageFile`
@@ -59,7 +65,7 @@
5965

6066
### 0.6.0.2
6167

62-
- Make `argument` not require its named option wrapped in angle brackets. [#4, #5]
68+
- Make `argument` not require its named option wrapped in angle brackets. [#4](https://github.com/docopt/docopt.hs/pull/4), [#5](https://github.com/docopt/docopt.hs/pull/5)
6369

6470
### 0.6.0.1
6571

System/Console/Docopt/ParseUtils.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ manyTill1 p end = do
7676
rest <- manyTill p end
7777
return $ first : rest
7878

79-
-- |@skipUntil p@ ignores everything that comes before `p`.
80-
-- Returns what `p` returns.
79+
-- |@skipUntil p@ ignores everything that comes before @p@.
80+
-- Returns what @p@ returns.
8181
skipUntil :: Show a => CharParser u a -> CharParser u ()
8282
skipUntil p = skipMany (notFollowedBy p >> anyChar)
8383

System/Console/Docopt/Public.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ notPresent = (not .) . isPresent
107107
-- > Usage:
108108
-- > prog <required>
109109
--
110-
-- then @getArg args (argument \'required\')@ is guaranteed to be a 'Just'.
110+
-- then @getArg args (argument "required")@ is guaranteed to be a 'Just'.
111111
getArg :: Arguments -> Option -> Maybe String
112112
getArg args opt =
113113
case opt `M.lookup` args of

System/Console/Docopt/UsageParse.hs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pUsagePatterns = do
158158
-- * Option Synonyms & Defaults Parsers
159159

160160
-- | Succeeds only on the first line of an option explanation
161-
-- (one whose first non-space character is '-')
161+
-- (one whose first non-space character is @\'-\'@)
162162
begOptionLine :: CharParser OptInfoMap String
163163
begOptionLine = inlineSpaces >> lookAhead (char '-') >> return "-"
164164

@@ -256,8 +256,11 @@ canRepeat pat target =
256256
-- | Compare on specificity of parsers built from optA and optB,
257257
-- so we can be sure the parser tries the most-specific first, where possible.
258258
-- E.g.
259-
-- LongOption "option" > ShortOption 'o' == True
260-
-- Command "cmd" > Argument "arg" == True
259+
--
260+
-- @
261+
-- LongOption "option" > ShortOption \'o\' == True
262+
-- Command "cmd" > Argument "arg" == True
263+
-- @
261264
compareOptSpecificity :: Option -> Option -> Ordering
262265
compareOptSpecificity optA optB = case optA of
263266
LongOption a -> case optB of

docopt.cabal

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
name: docopt
2-
version: 0.7.0.7
2+
version: 0.7.0.8
33
synopsis: A command-line interface parser that will make you smile
44
description: Docopt parses command-line interface usage text that adheres to a familiar syntax, and from it builds a command-line argument parser that will ensure your program is invoked correctly with the available options specified in the usage text. This allows the developer to write a usage text and get an argument parser for free.
55

66
license: MIT
77
license-file: LICENSE.txt
88
author: Ryan Artecona
9-
maintainer: ryanartecona@gmail.com
9+
maintainer: QBayLogic B.V. <devops@qbaylogic.com>
1010
copyright: (c) 2013-2015 Ryan Artecona
11+
tested-with:
12+
GHC == 8.0.2,
13+
GHC == 8.2.2,
14+
GHC == 8.4.4,
15+
GHC == 8.6.5,
16+
GHC == 8.8.4,
17+
GHC == 8.10.7,
18+
GHC == 9.0.2,
19+
GHC == 9.2.8,
20+
GHC == 9.4.7,
21+
GHC == 9.6.3,
22+
GHC == 9.8.1
1123

1224
category: Console
1325

@@ -27,6 +39,11 @@ source-repository head
2739
type: git
2840
location: https://github.com/docopt/docopt.hs.git
2941

42+
source-repository this
43+
type: git
44+
location: https://github.com/docopt/docopt.hs.git
45+
tag: v0.7.0.8
46+
3047
library
3148
exposed-modules: System.Console.Docopt.NoTH
3249
System.Console.Docopt

0 commit comments

Comments
 (0)