packages feed

hscrtmpl-2.0: hscrtmpl.cabal

cabal-version: 2.2

name:           hscrtmpl
version:        2.0
synopsis:       Haskell shell script templates
description:    Templates for writing shell scripts in Haskell. Includes some useful functions and examples of things commonly done in bash. And an example of using optparse-applicative in a shell script.
category:       Application, Console, Scripting
homepage:       https://github.com/dino-/hscrtmpl#readme
bug-reports:    https://github.com/dino-/hscrtmpl/issues
author:         Dino Morelli
maintainer:     Dino Morelli <dino@ui3.info>
copyright:      2013 Dino Morelli
license:        ISC
license-file:   LICENSE
build-type:     Simple
extra-source-files:
  changelog.md
  .gitignore
  README.md
  stack.yaml

source-repository head
  type: git
  location: https://github.com/dino-/hscrtmpl

-- Hey! These source files are *scripts*, you don't have to build them unless
-- you want to have a binary!

common lang
  default-language: Haskell2010
  other-modules:
    Paths_hscrtmpl
  autogen-modules:
    Paths_hscrtmpl
  build-depends:
      process
  ghc-options:
    -fwarn-tabs
    -Wall
    -Wcompat
    -Wincomplete-record-updates
    -Wincomplete-uni-patterns
    -Wredundant-constraints

executable hscrtmpl
  import: lang
  main-is: hscrtmpl.hs
  build-depends:
      base >=3 && <5
    , directory
    , filepath
    -- , regex-compat
    , time
    -- , time-locale-compat

executable args-example
  import: lang
  main-is: args-example.hs
  build-depends:
      base >=3 && <5
    , ansi-wl-pprint
    , heredoc
    , optparse-applicative