packages feed

language-conf-0.2.1.0: language-conf.cabal

-- This file has been generated from package.yaml by hpack version 0.14.0.
--
-- see: https://github.com/sol/hpack

name:           language-conf
version:        0.2.1.0
synopsis:       Conf parsers and pretty-printers for the Haskell programming language.
description:    @language-conf@ contains @.conf@ (e.g. nginx configuration) parsers and pretty-printers for the Haskell programming language.
                "Data.Conf" exports all the API surface in the package.
                "ConfFmt" is a @.conf@ file formatter that serves as an example; it's built as @conffmt@ by the cabal configuration. You can see its' source-code <https://github.com/beijaflor-io/language-hcl/src/ConfFmt.hs here>
category:       Data
homepage:       https://github.com/beijaflor-io/haskell-language-conf#readme
bug-reports:    https://github.com/beijaflor-io/haskell-language-conf/issues
author:         Pedro Tacla Yamada
maintainer:     tacla.yamada@gmail.com
copyright:      Copyright (c) 2016 Pedro Tacla Yamada
license:        MIT
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10

extra-source-files:
    ./default.conf
    ./default.conf.json.conf
    ./small.conf

source-repository head
  type: git
  location: https://github.com/beijaflor-io/haskell-language-conf

flag conffmt
  description: Build the conffmt utility
  manual: False
  default: False

flag fromconf
  description: Build the fromconf utility
  manual: False
  default: False

flag toconf
  description: Build the toconf utility
  manual: False
  default: False

library
  hs-source-dirs:
      src
  build-depends:
      base >=4.8 && <5
    , deepseq
    , directory >=1.2.2.0
    , filepath >=1.4.0.0
    , megaparsec >=5
    , pretty
    , scientific >=0.3.4.6
    , semigroups >=0.18.1
    , text >=1.2.2.1
    , unordered-containers
    , vector
    , aeson
  exposed-modules:
      Data.Conf
      Data.Conf.PrettyPrint
      Data.Conf.Types
      Data.Conf.Internal
      Data.Conf.Aeson
  default-language: Haskell2010

executable conffmt
  main-is: ConfFmt.hs
  hs-source-dirs:
      bin
  build-depends:
      base
    , text
    , megaparsec
    , language-conf
    , pretty
  if !(flag(conffmt))
    buildable: False
  other-modules:
      FromConf
      ToConf
  default-language: Haskell2010

executable fromconf
  main-is: FromConf.hs
  hs-source-dirs:
      bin
  build-depends:
      base
    , language-conf
    , text
    , bytestring
    , megaparsec
    , filepath
    , aeson
    , yaml
  if !(flag(fromconf))
    buildable: False
  other-modules:
      ConfFmt
      ToConf
  default-language: Haskell2010

executable toconf
  main-is: ToConf.hs
  hs-source-dirs:
      bin
  build-depends:
      base
    , language-conf
    , text
    , bytestring
    , megaparsec
    , filepath
    , aeson
    , yaml
  if !(flag(toconf))
    buildable: False
  other-modules:
      ConfFmt
      FromConf
  default-language: Haskell2010

test-suite hspec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  build-depends:
      QuickCheck
    , base
    , directory
    , filepath
    , hspec
    , language-conf
    , megaparsec
    , hspec-megaparsec
    , pretty
    , semigroups >=0.18.1
    , text
    , aeson
    , transformers >=0.4.2.0
  other-modules:
      Data.Conf.AesonSpec
      Data.ConfSpec
      SanitySpec
  default-language: Haskell2010