descriptive 0.1.0 → 0.1.1
raw patch · 4 files changed
+12/−5 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG +4/−2
- README.md +5/−0
- descriptive.cabal +1/−1
- src/Descriptive/Options.hs +2/−2
CHANGELOG view
@@ -1,3 +1,5 @@-0.1.0:+0.1.1:+ * Printer fix for options consumer. -* Change to Result type which supports Continued constructor.+0.1.0:+ * Change to Result type which supports Continued constructor.
README.md view
@@ -172,6 +172,11 @@ λ> ``` +``` haskell+λ> textDescription (describe server [])+"start SERVER_NAME [--dev] --port <...>"+```+ ## Self-documenting JSON parser See `Descriptive.JSON`.
descriptive.cabal view
@@ -1,5 +1,5 @@ name: descriptive-version: 0.1.0+version: 0.1.1 synopsis: Self-describing consumers/parsers; forms, cmd-line args, JSON, etc. description: Self-describing consumers/parsers. See the README.md for more information. It is currently EXPERIMENTAL. stability: Experimental
src/Descriptive/Options.hs view
@@ -134,6 +134,6 @@ textOpt :: Option -> Text textOpt (AnyString t) = T.map toUpper t textOpt (Constant t) = t-textOpt (Flag t _) = "--" <> t-textOpt (Arg t _) = "-" <> t <> " <...>"+textOpt (Flag t _) = "[--" <> t <> "]"+textOpt (Arg t _) = "--" <> t <> " <...>" textOpt (Prefix t _) = "-" <> t <> "<...>"