packages feed

aws-cloudfront-signed-cookies-0.2.0.13: aws-cloudfront-signed-cookies.cabal

cabal-version: 3.0

name: aws-cloudfront-signed-cookies
version: 0.2.0.13

synopsis: Generate signed cookies for AWS CloudFront
category: Network, AWS, Cloud

description: One way to serve private content through AWS CloudFront
     is to use signed cookies. This package helps you generate signed
     cookies using a custom IAM policy which may include a range of
     time for which the cookie is valid and an IP address restriction.

homepage: https://github.com/typeclasses/aws-cloudfront-signed-cookies
bug-reports: https://github.com/typeclasses/aws-cloudfront-signed-cookies/issues

author: Chris Martin
maintainer: Chris Martin, Julie Moronuki

copyright: 2021 Mission Valley Software LLC
license: MIT
license-file: license.txt

extra-source-files: *.md

source-repository head
    type: git
    location: https://github.com/typeclasses/aws-cloudfront-signed-cookies

common base
    default-language: Haskell2010
    ghc-options: -Wall
    default-extensions:
        FlexibleContexts
        LambdaCase
        OverloadedStrings
        RecordWildCards
        ScopedTypeVariables
        TypeApplications
    build-depends:
      , base ^>= 4.18 || ^>= 4.19

library
    import: base
    hs-source-dirs: library
    exposed-modules:
        Network.AWS.CloudFront.SignedCookies
        Network.AWS.CloudFront.SignedCookies.CLI
        Network.AWS.CloudFront.SignedCookies.CLI.Decode
        Network.AWS.CloudFront.SignedCookies.CLI.Sign
        Network.AWS.CloudFront.SignedCookies.Crypto
        Network.AWS.CloudFront.SignedCookies.Encoding
        Network.AWS.CloudFront.SignedCookies.Policy
        Network.AWS.CloudFront.SignedCookies.Types
    other-modules:
        Network.AWS.CloudFront.SignedCookies.CLI.Internal
        Network.AWS.CloudFront.SignedCookies.Crypto.Internal
    build-depends:
      , aeson ^>= 2.1 || ^>= 2.2
      , aeson-pretty ^>= 0.8.9
      , asn1-encoding ^>= 0.9.6
      , asn1-types ^>= 0.3.4
      , base64-bytestring ^>= 1.2.1
      , bytestring ^>= 0.11 || ^>= 0.12
      , cookie ^>= 0.4.5
      , crypton ^>= 0.34 || ^>= 1.0
      , lens ^>= 5.0.1 || ^>= 5.1 || ^>= 5.2
      , lens-aeson ^>= 1.2
      , optparse-applicative ^>= 0.16.1 || ^>= 0.17 || ^>= 0.18
      , pem ^>= 0.2.4
      , text ^>= 2.0 || ^>= 2.1
      , time ^>= 1.9.3 || ^>= 1.10 || ^>= 1.11 || ^>= 1.12
      , vector ^>= 0.12.3 || ^>= 0.13

executable aws-cloudfront-signed-cookies
    import: base
    hs-source-dirs: executables
    main-is: aws-cloudfront-signed-cookies.hs
    build-depends: aws-cloudfront-signed-cookies

test-suite hedgehog
    import: base
    hs-source-dirs: test
    type: exitcode-stdio-1.0
    main-is: Main.hs
    ghc-options: -threaded
    default-extensions:
        QuasiQuotes
        TemplateHaskell
    build-depends:
      , aws-cloudfront-signed-cookies
      , hedgehog ^>= 1.4
      , neat-interpolation ^>= 0.5.1