cli-setup 0.2.0.1 → 0.2.0.2
raw patch · 3 files changed
+50/−43 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- cabal.project.local +0/−1
- cli-setup.cabal +46/−39
- src/Distribution/CommandLine.hs +4/−3
cabal.project.local view
@@ -1,5 +1,4 @@ constraints: cli-setup +development-with-compiler: ghc-8.2.2 tests: True benchmarks: True documentation: True
cli-setup.cabal view
@@ -1,42 +1,49 @@-name: cli-setup-version: 0.2.0.1-synopsis: Helper setup scripts for packaging command-line tools.-description: Provides functions to set up manpages and shell completions. Intended to be used in the @Setup.hs@ module.-homepage: https://github.com/vmchale/cli-setup#readme-license: BSD3-license-file: LICENSE-author: Vanessa McHale-maintainer: vamchale@gmail.com-copyright: Copyright: (c) 2018 Vanessa McHale-category: Development, Command Line Tools-build-type: Simple-extra-doc-files: README.md-extra-source-files: stack.yaml- , cabal.project.local- , py/optparse-applicative.py-cabal-version: >=1.18+cabal-version: 1.18+name: cli-setup+version: 0.2.0.2+license: BSD3+license-file: LICENSE+copyright: Copyright: (c) 2018 Vanessa McHale+maintainer: vamchale@gmail.com+author: Vanessa McHale+homepage: https://github.com/vmchale/cli-setup#readme+synopsis: Helper setup scripts for packaging command-line tools.+description:+ Provides functions to set up manpages and shell completions. Intended to be used in the @Setup.hs@ module.+category: Development, Command Line Tools+build-type: Simple+extra-source-files:+ stack.yaml+ cabal.project.local+ py/optparse-applicative.py+extra-doc-files: README.md -Flag development {- Description: Enable `-Werror`- manual: True- default: False-}+source-repository head+ type: darcs+ location: https://hub.darcs.net/vmchale/cli-setup -library- hs-source-dirs: src- exposed-modules: Distribution.CommandLine- build-depends: base >= 4.8 && < 5- , directory- , process >= 1.4.0.0- , bytestring- , file-embed- default-language: Haskell2010- if flag(development)- ghc-options: -Werror- if impl(ghc >= 8.0)- ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates -Wcompat- ghc-options: -Wall+flag development+ description:+ Enable `-Werror`+ default: False+ manual: True -source-repository head- type: darcs- location: https://hub.darcs.net/vmchale/cli-setup+library+ exposed-modules:+ Distribution.CommandLine+ hs-source-dirs: src+ default-language: Haskell2010+ ghc-options: -Wall+ build-depends:+ base >=4.8 && <5,+ directory -any,+ process >=1.4.0.0,+ bytestring -any,+ file-embed >=0.0.9+ + if flag(development)+ ghc-options: -Werror+ + if impl(ghc >=8.0)+ ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates+ -Wcompat
src/Distribution/CommandLine.hs view
@@ -7,12 +7,13 @@ , writeTheFuck ) where -import Data.Bool (bool) import Control.Monad (unless, void)-import System.Directory (createDirectoryIfMissing, doesDirectoryExist)+import Data.Bool (bool)+import Data.FileEmbed (embedStringFile)+import System.Directory (createDirectoryIfMissing,+ doesDirectoryExist) import System.Environment (lookupEnv) import System.Process (readCreateProcessWithExitCode, shell)-import Data.FileEmbed (embedStringFile) rules :: String rules = $(embedStringFile "py/optparse-applicative.py")