packages feed

optparse-simple 0.1.1.1 → 0.1.1.2

raw patch · 3 files changed

+9/−5 lines, 3 files

Files

ChangeLog.md view
@@ -1,3 +1,9 @@+# ChangeLog for optparse-simple++## 0.1.1.2++* Run TH slice at the right time to get proper Git info [#13](https://github.com/fpco/optparse-simple/issues/13)+ ## 0.1.1.1  * Add explicit signature to work around [#12](https://github.com/fpco/optparse-simple/issues/12)
optparse-simple.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 2b285a22930737d4130d35d7319b2a913433c6dc222a4fd799010d448a1b9c8c+-- hash: fa55f93c89cb6aea5dd08d557e397a862c381f89f99d22f74b8699ceb6361534  name:           optparse-simple-version:        0.1.1.1+version:        0.1.1.2 synopsis:       Simple interface to optparse-applicative description:    Please see the README at <https://www.stackage.org/package/optparse-simple> category:       Options
src/Options/Applicative/Simple.hs view
@@ -89,15 +89,13 @@   [|concat (["Version "            ,$(TH.lift $ showVersion version)            ] ++-           case giResult :: Either String GitInfo of+           case $(TH.unTypeQ tGitInfoCwdTry) :: Either String GitInfo of              Left _ -> []              Right gi -> [ ", Git revision "                          , giHash gi                          , if giDirty gi then " (dirty)" else ""                          ]            )|]-  where-    giResult = $$tGitInfoCwdTry  -- | Add a command to the options dispatcher. addCommand :: String   -- ^ command string