@hackage / cli-setup

Helper setup scripts for packaging command-line tools.

Latest0.2.1.4

About

Metadata

  • Last updated , by vmchale
  • License BSD-3-Clause
  • Categories Development
  • Maintained by: vamchale@gmail.com

  • Lottery factor: 0

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    development (off by default)

    Enable `-Werror`

Readme

cli-setup

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" *>
    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.