packages feed

http2-tls-0.4.7: http2-tls.cabal

cabal-version: >=1.10
name:          http2-tls
version:       0.4.7
license:       BSD3
license-file:  LICENSE
maintainer:    Kazu Yamamoto <kazu@iij.ad.jp>
author:        Kazu Yamamoto <kazu@iij.ad.jp>
homepage:      https://github.com/kazu-yamamoto/http2-tls
synopsis:      Library for HTTP/2 over TLS
description:   Using the HTTP/2 library over TLS
category:      Network
build-type:    Simple

source-repository head
    type:     git
    location: https://github.com/kazu-yamamoto/http2-tls

flag devel
    description: Development commands
    default:     False

library
    exposed-modules:
        Network.HTTP2.TLS.Client
        Network.HTTP2.TLS.Internal
        Network.HTTP2.TLS.Server

    other-modules:
        Network.HTTP2.TLS.Client.Settings
        Network.HTTP2.TLS.Config
        Network.HTTP2.TLS.IO
        Network.HTTP2.TLS.Server.Settings
        Network.HTTP2.TLS.Supported

    default-language:   Haskell2010
    default-extensions: Strict StrictData
    ghc-options:        -Wall
    build-depends:
        base >=4.9 && <5,
        bytestring >=0.10,
        crypton-x509-store >=1.6 && <1.7,
        crypton-x509-system >=1.6 && <1.7,
        crypton-x509-validation >=1.6 && <1.7,
        http2 >=5.3.9 && <5.4,
        network >=3.1.4,
        network-control >=0.1 && <0.2,
        network-run >=0.4 && <0.5,
        recv >=0.1.0 && <0.2,
        time-manager >=0.2 && <0.3,
        tls >=2.1.10 && <2.2,
        utf8-string >=1.0 && <1.1

executable h2-client
    main-is:            h2-client.hs
    hs-source-dirs:     util
    other-modules:      Client
    default-language:   Haskell2010
    default-extensions: Strict StrictData
    ghc-options:        -Wall -threaded -rtsopts
    build-depends:
        base >=4.9 && <5,
        async,
        bytestring,
        case-insensitive,
        http-semantics,
        http-types,
        http2,
        http2-tls,
        tls

    if flag(devel)

    else
        buildable: False

executable h2-server
    main-is:            h2-server.hs
    hs-source-dirs:     util
    other-modules:      Server
    default-language:   Haskell2010
    default-extensions: Strict StrictData
    ghc-options:        -Wall -threaded
    build-depends:
        base >=4.9 && <5,
        bytestring,
        crypton,
        http-types,
        http2,
        http2-tls,
        tls,
        tls-session-manager

    if flag(devel)

    else
        buildable: False