packages feed

ats-format-0.2.0.8: ats-format.cabal

name:                ats-format
version:             0.2.0.8
synopsis:            A source-code formatter for ATS
description:         An opinionated source-code formatter for [ATS](http://www.ats-lang.org/).
license:             BSD3
license-file:        LICENSE
author:              Vanessa McHale
maintainer:          vamchale@gmail.com
copyright:           Copyright: (c) 2017 Vanessa McHale
category:            Parser, Language, ATS, Development
build-type:          Custom
extra-doc-files:     README.md
data-files:          .travis.yml
                   , appveyor.yml
extra-source-files:  stack.yaml
                   , .atsfmt.toml
                   , man/atsfmt.1
cabal-version:       >=1.18

custom-setup
  setup-depends:   base
                 , Cabal
                 , cli-setup >= 0.1.0.2

Flag development {
  Description: Enable `-Werror`
  manual: True
  default: False
}

Flag library {
  Description: Do not build executable
  default: False
}

library
  hs-source-dirs:      src
  exposed-modules:     Language.ATS.Exec
  other-modules:       Paths_ats_format
  build-depends:       base >= 4.10 && < 5
                     , language-ats >= 0.1.1.10
                     , optparse-applicative
                     , htoml-megaparsec >= 1.1.0.0
                     , text
                     , ansi-wl-pprint
                     , directory
                     , unordered-containers
                     , process
                     , file-embed
  build-tools:         happy
                     , alex
  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

executable atsfmt
  if flag(library)
    buildable:         False
  hs-source-dirs:      app
  main-is:             Main.hs
  build-depends:       base
                     , ats-format
  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 

source-repository head
  type:     darcs
  location: https://hub.darcs.net/vmchale/ats