packages feed

box-socket-0.5.2.0: box-socket.cabal

cabal-version: 3.0
name: box-socket
version: 0.5.2.0
license: BSD-3-Clause
license-file: LICENSE
copyright: Tony Day (c) 2017
category: web
author: Tony Day
maintainer: tonyday567@gmail.com
homepage: https://github.com/tonyday567/box-socket#readme
bug-reports: https://github.com/tonyday567/box-socket/issues
synopsis: Box websockets
description: Websockets built with the box library.
build-type: Simple
tested-with:
    , GHC == 9.10.1
    , GHC == 9.6.5
    , GHC == 9.8.2
extra-doc-files:
    ChangeLog.md
    readme.md

source-repository head
    type: git
    location: https://github.com/tonyday567/box-socket

common ghc-options-exe-stanza
    ghc-options:
        -fforce-recomp
        -funbox-strict-fields
        -rtsopts
        -threaded
        -with-rtsopts=-N

common ghc-options-stanza
    ghc-options:
        -Wall
        -Wcompat
        -Widentities
        -Wincomplete-record-updates
        -Wincomplete-uni-patterns
        -Wpartial-fields
        -Wredundant-constraints

common ghc2021-stanza
    default-language: GHC2021

library
    import: ghc-options-stanza
    import: ghc2021-stanza
    hs-source-dirs: src
    build-depends:
        , async          >=2.2.3 && <2.3
        , base           >=4.14 && <5
        , box            >=0.9.3 && <0.10
        , bytestring     >=0.11.3 && <0.13
        , network-simple >=0.4 && <0.5
        , profunctors    >=5.6 && <5.7
        , text           >=1.2 && <2.2
        , websockets     >=0.12 && <0.14
    exposed-modules:
        Box.Socket.Types
        Box.TCP
        Box.TCP.Example
        Box.Websocket
        Box.Websocket.Example

executable box-socket
    import: ghc-options-exe-stanza
    import: ghc-options-stanza
    import: ghc2021-stanza
    main-is: box-socket.hs
    hs-source-dirs: app
    build-depends:
        , base                 >=4.14 && <5
        , box-socket
        , optparse-applicative >=0.17 && <0.19

test-suite doctests
    import: ghc2021-stanza
    main-is: doctests.hs
    hs-source-dirs: test
    build-depends:
        , base             >=4.14 && <5
        , doctest-parallel >=0.3 && <0.4
    ghc-options: -threaded
    type: exitcode-stdio-1.0