packages feed

configuration-tools-0.2.2: configuration-tools.cabal

-- ------------------------------------------------------ --
-- Copyright © 2014 AlephCloud Systems, Inc.
-- ------------------------------------------------------ --

Name:                configuration-tools
Version:             0.2.2
Synopsis:            Tools for specifying and parsing configurations
description:
    Tools for specifying and parsing configurations
    .
    This package provides a collection of utils on top of the packages
    <http://hackage.haskell.org/package/optparse-applicative optparse-applicative>,
    <http://hackage.haskell.org/package/aeson aeson>, and
    <http://hackage.haskell.org/package/yaml yaml> for configuring libraries and
    applications in a convenient and composable way.
    .
    The main features are
    .
    1. configuration management through integration of command line option
       parsing and configuration files and
    .
    2. a @Setup.hs@ file that generates a @PkgInfo@ module for each component
       of a package that provides information about the package and the build.
    .
    Documentation on how to use this package can be found in the
    <https://github.com/alephcloud/hs-configuration-tools/blob/master/README.md README>
    and in the API documentation of the modules "Configuration.Utils" and
    "Configuration.Utils.Setup".

Homepage:            https://github.com/alephcloud/hs-configuration-tools
Bug-reports:         https://github.com/alephcloud/hs-configuration-tools/issues
License:             MIT
License-file:        LICENSE
Author:              Lars Kuhtz <lars@alephcloud.com>
Maintainer:          Lars Kuhtz <lars@alephcloud.com>
Copyright:           Copyright (c) 2014 AlephCloud, Inc.
Category:            Configuration, Console
Build-type:          Custom

cabal-version:  >= 1.20

extra-doc-files:
    README.md,
    CHANGELOG.md

extra-source-files:
    constraints

source-repository head
    type: git
    location: https://github.com/alephcloud/hs-configuration-tools.git

source-repository this
    type: git
    location: https://github.com/alephcloud/hs-configuration-tools.git
    tag: 0.2.2

Library
    hs-source-dirs: src
    default-language: Haskell2010

    exposed-modules:
        -- Configuration.Utils.FromJsonWithDef
        Configuration.Utils
        Configuration.Utils.Http
        Configuration.Utils.Setup

    other-modules:
        Configuration.Utils.Internal

    build-depends:
        Cabal >= 1.20,
        aeson >= 0.7.0.6,
        attoparsec >= 0.11.3.4,
        base >= 4.6 && < 5.0,
        base-unicode-symbols >= 0.2.2.4,
        bytestring >= 0.10.0.2,
        directory >= 1.2.1.0,
        errors >= 1.4.3,
        optparse-applicative >= 0.8.1,
        process >= 1.2.0.0,
        text >= 1.0,
        transformers >= 0.3.0.0,
        unordered-containers >= 0.2.4.0,
        yaml >= 0.8.8.3,
        profunctors >= 4.0.4

    ghc-options: -Wall

Test-Suite url-example
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    main-is: Example.hs
    hs-source-dirs: examples

    build-depends:
        base >= 4.6 && < 5.0,
        base-unicode-symbols >= 0.2.2.4,
        configuration-tools

    ghc-options: -Wall

Test-Suite trivial
    type: exitcode-stdio-1.0
    default-language: Haskell2010
    main-is: Trivial.hs
    hs-source-dirs: examples

    build-depends:
        base >= 4.6 && < 5.0,
        base-unicode-symbols >= 0.2.2.4,
        configuration-tools

    ghc-options: -Wall