packages feed

amazonka-iam-policy-0.0.4: amazonka-iam-policy.cabal

name:                  amazonka-iam-policy
version:               0.0.4
synopsis:              Amazon IAM Policy Document DSL and Combinators.
homepage:              https://github.com/brendanhay/amazonka-iam-policy
bug-reports:           https://github.com/brendanhay/amazonka-iam-policy/issues
license:               MPL-2.0
license-file:          LICENSE
author:                Brendan Hay
maintainer:            Brendan Hay <brendan.g.hay+amazonka@gmail.com>
copyright:             Copyright (c) 2017 Brendan Hay
category:              Network, AWS, Cloud
build-type:            Simple
extra-source-files:    README.md CHANGELOG.md
cabal-version:         >= 1.10
data-files:            test/golden/*.json

description:
    This library provides data types and combinators that allow you to declare,
    encode, and decode the <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html IAM JSON policy>
    language with a modicum of safety, minus any extreme type-level features.
    .
    The IAM policy documents can be safely constructed via the provided datatypes
    and mapped, folded, and traversed via the provided instances, combinators,
    and lenses. The resulting structure can then be encoded as a valid IAM JSON
    policy document for using with Amazon IAM and related services.
    .
    The details of what goes into a policy vary for each service, depending on what
    actions the service makes available, what types of resources it contains, and
    so on. When you're writing policies for a specific service, it's helpful to see
    examples of policies for that service. View the
    <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html AWS Services That Work with IAM> documentation for more information.
    .
    See "Amazonka.IAM.Policy" to get started.

source-repository head
    type:              git
    location:          git://github.com/brendanhay/amazonka-iam-policy.git

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

    ghc-options:
        -Wall
        -fwarn-incomplete-uni-patterns
        -fwarn-incomplete-record-updates
        -funbox-strict-fields

    exposed-modules:
        Amazonka.IAM.Policy
        Amazonka.IAM.Policy.Lens

    build-depends:
          aeson
        , base >= 4.7 && < 5
        , base64-bytestring
        , bytestring
        , hashable
        , profunctors
        , scientific
        , text
        , time

test-suite doctest
    type:              exitcode-stdio-1.0
    default-language:  Haskell2010
    hs-source-dirs:    test
    main-is:           Doctest.hs

    ghc-options:       -Wall -threaded

    other-modules:
        Paths_amazonka_iam_policy

    build-depends:
          aeson-pretty
        , amazonka-iam-policy
        , doctest
        , base

test-suite golden
    type:              exitcode-stdio-1.0
    default-language:  Haskell2010
    hs-source-dirs:    test
    main-is:           Golden.hs

    ghc-options:       -Wall -threaded

    other-modules:
        Paths_amazonka_iam_policy

    build-depends:
          aeson
        , amazonka-iam-policy
        , base
        , bytestring
        , hspec