summaryrefslogtreecommitdiff
path: root/tomlcheck.cabal
blob: 777a069758ea945875b78586897b78977f670fab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name:                tomlcheck
version:             0.1.0.2
synopsis:            Command-line tool to check syntax of TOML files
description:         This is a command-line wrapper around htoml-megaparsec.
                     It is intended to be used as a syntax checker that can be
                     called by your text editor.
homepage:            https://github.com/vmchale/tomlcheck#readme
license:             BSD3
license-file:        LICENSE
author:              Vanessa McHale
maintainer:          vanessa.mchale@reconfigure.io
copyright:           Copyright: (c) 2017 Vanessa McHale
category:            Toml, Data
build-type:          Simple
extra-source-files:  cabal.project.local
                   , stack.yaml
cabal-version:       >=1.18
Data-files:          .travis.yml
                   , appveyor.yml
                   , Justfile
Extra-doc-files:     README.md

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

library
  hs-source-dirs:      src
  exposed-modules:     Toml.Checker
  build-depends:       base >= 4.8 && < 5
                     , htoml-megaparsec >= 1.0.1.1
                     , optparse-generic
                     , megaparsec >= 6.0
                     , text
  default-language:    Haskell2010
  if flag(development) && impl(ghc >= 8.0)
    ghc-options: -Werror
  if impl(ghc >= 8.0)
    ghc-options:       -Wincomplete-uni-patterns -Wincomplete-record-updates -Wcompat
  ghc-options:         -Wall

executable tomlcheck
  hs-source-dirs:      app
  main-is:             Main.hs
  -- ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base
                     , tomlcheck
  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:     git
  location: https://github.com/vmchale/tomlcheck