packages feed

http-client-websockets-0.1.1.2: http-client-websockets.cabal

cabal-version: 2.4
name: http-client-websockets
version: 0.1.1.2

synopsis: Glue code for http-client and websockets
description:
  Glue code for http-client and websockets, so that
  you can use a @Manager@ from http-client to create
  a WebSocket connection.
  .
  This way, all applicable @Manager@ options like
  TLS or proxy settings can be reused.
category: Network

homepage: https://github.com/amesgen/http-client-websockets
bug-reports: https://github.com/amesgen/http-client-websockets/issues
license: CC0-1.0
license-file: LICENSE
extra-source-files: README.md
author: amesgen
maintainer: amesgen@amesgen.de
extra-source-files: CHANGELOG.md

source-repository head
  location: https://github.com/amesgen/http-client-websockets
  type: git

common commons
  default-language: Haskell2010
  ghc-options: -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -Wmissing-export-lists -fno-warn-name-shadowing -fhide-source-paths
  if impl(ghc >= 8.10)
    ghc-options: -Wunused-packages

library
  import: commons
  hs-source-dirs: src
  exposed-modules:
    Network.HTTP.Client.WebSockets
  build-depends:
      base >= 4.11 && < 5
    , bytestring
    , text
    , network-uri >= 2.6
    , http-client >= 0.6
    , websockets >= 0.12

test-suite hspec
  import: commons
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs: test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base
    , bytestring
    , hspec >= 2.5
    , network-uri
    , http-client-tls
    , websockets
    , http-client-websockets