packages feed

cli-setup 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+20/−5 lines, 3 filesdep ~processPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: process

API changes (from Hackage documentation)

Files

README.md view
@@ -1,5 +1,18 @@ # cli-setup -## Installation+Example use taken from [madlang](http://hackage.haskell.org/package/madlang)'s+`Setup.hs` file: -## Configuration+```haskell+import           Distribution.CommandLine+import           Distribution.Simple++main :: IO ()+main = setManpath >>+    writeManpages "man/madlang.1" "madlang.1" >>+    writeBashCompletions "madlang" >>+    defaultMain+```++Be sure to add `man/madlang.1` (or whatever the path to your source file is) to+your `.cabal` file's `extra-source-files` field. 
cli-setup.cabal view
@@ -1,5 +1,5 @@ name:                cli-setup-version:             0.1.0.0+version:             0.1.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@@ -26,7 +26,7 @@   exposed-modules:     Distribution.CommandLine   build-depends:       base >= 4.8 && < 5                      , directory-                     , process+                     , process >= 1.4.0.0   default-language:    Haskell2010   if flag(development)     ghc-options:       -Werror
src/Distribution/CommandLine.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE BangPatterns #-}+ module Distribution.CommandLine     ( writeManpages     , writeBashCompletions@@ -35,7 +37,7 @@  writeBashCompletions :: String -- ^ Executable name                      -> IO ()-writeBashCompletions exeName = do+writeBashCompletions !exeName = do     home <- lookupEnv "HOME"     case home of         Just x -> do