cli-setup: Helper setup scripts for packaging command-line tools.

[ bsd3, command-line-tools, development, library ] [ Propose Tags ]

Provides functions to set up manpages and shell completions. Intended to be used in the Setup.hs module.

[Skip to Readme]




Manual Flags


Enable `-Werror`


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,,,, (info)
Dependencies base (>=4.8 && <5), bytestring, directory, file-embed (>=0.0.9), process (>= [details]
License BSD-3-Clause
Copyright Copyright: (c) 2018 Vanessa McHale
Author Vanessa McHale
Revised Revision 1 made by vmchale at 2018-03-30T20:28:31Z
Category Development, Command Line Tools
Home page
Source repo head: darcs get
Uploaded by vmchale at 2018-02-02T05:41:23Z
Distributions NixOS:
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 8401 total (61 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-02-02 [all 1 reports]

Readme for cli-setup-

[back to package description]


Example use taken from madlang's `Setup.hs` file:

import           Distribution.CommandLine
import           Distribution.Simple

main :: IO ()
main = setManpath >>
    writeManpages "man/madlang.1" "madlang.1" >>
    writeBashCompletions "madlang" >>

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.