packages feed

configurator-export-0.1.0.1: configurator-export.cabal

name:                configurator-export
version:             0.1.0.1
synopsis:            Pretty printer and exporter for configurations from
                     the "configurator" library.
description:         Pretty printers and exporters for 'Config's from the
                     <http://hackage.haskell.org/package/configurator-0.3.0.0 configurator>
                     library, in "Data.Configurator".
                     .
                     All results are intended to be valid parsing files in the
                     configuration file syntax of the library.
                     .
                     For a full round trip:
                     .
                     > main = do
                     >   cfg <- load [Required "config.cfg"]
                     >   writeConf "config.cfg" cfg
                     .
                     This should load the config file, parse it, and then
                     re-export it, rewriting the original config file.  The
                     result should be an identical configuration file (with
                     keys potentially re-arranged and re-sorted, comments
                     removed, etc.)
                     .
                     See the "Data.Configurator.Export" module for more
                     details and ways to modify the output style.
homepage:            http://github.com/mstksg/configurator-export
license:             BSD3
license-file:        LICENSE
author:              Justin Le
maintainer:          justin@jle.im
copyright:           (c) Justin Le 2016
category:            Configuration, Data
build-type:          Simple
extra-source-files:  README.md
                     CHANGELOG.md
                     stack.yaml
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     Data.Configurator.Export
  if impl(ghc >= 7.10)
    build-depends:       base >= 4.8 && < 5
                       , base-compat
                       , configurator
                       , pretty
                       , semigroups >= 0.17
                       , text
                       , unordered-containers
  else
    build-depends:       base >= 4.6 && < 5
                       , bifunctors
                       , base-compat
                       , configurator
                       , pretty
                       , semigroups >= 0.17
                       , text
                       , unordered-containers
  ghc-options:         -Wall
  default-language:    Haskell2010

test-suite configurator-export-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , configurator-export
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/mstksg/configurator-export