packages feed

reflex-backend-socket-0.2.0.1: reflex-backend-socket.cabal

-- Initial reflex-backend-socket.cabal generated by cabal init.  For further
--  documentation, see http://haskell.org/cabal/users-guide/

name:                reflex-backend-socket
version:             0.2.0.1
synopsis:            Reflex bindings for TCP sockets
description:
  <<https://raw.githubusercontent.com/qfpl/assets/master/data61-transparent-bg.png>>
  .
  reflex-backend-socket provides functions to handle sockets using
  Reflex @Event@s. Sending\/receiving\/waiting\/accepting are all
  performed on background threads.
  .
  The most important function in this library is
  @Reflex.Backend.Socket.socket@, which wraps a @Socket@ to process
  @Event t ByteString@s.
  .
  That @Socket@ can come from:
  .
  1. @Reflex.Backend.Socket.Accept.accept@, if you're making a server;
  2. @Reflex.Backend.Socket.Connect.connect@, if you're making a client; or
  3. Your favourite networking library.
license:             BSD3
license-file:        LICENSE
author:              Dave Laing
maintainer:          dave.laing.80@gmail.com, jack@jackkelly.name
homepage:            https://github.com/qfpl/reflex-backend-socket/
bug-reports:         https://github.com/qfpl/reflex-backend-socket/issues
copyright:           (c) 2018-2019, Commonwealth Scientific and Industrial Research Organisation
category:            FRP, Network
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.10
tested-with:         GHC == 8.6.5

source-repository    head
  type:              git
  location:          git@github.com/qfpl/reflex-backend-socket.git

library
  exposed-modules:     Reflex.Backend.Socket
                     , Reflex.Backend.Socket.Accept
                     , Reflex.Backend.Socket.Connect
                     , Reflex.Backend.Socket.Error
  build-depends:       base              >= 4.12    && < 4.16
                     , bytestring        >= 0.10    && < 0.12
                     , lens              >= 4.15.4  && < 4.20 || >= 5 && <5.2
                     , mtl               >= 2.2     && < 2.4
                     , network           >= 2.6     && < 3.2
                     , reflex            >= 0.7.1.0 && < 0.9
                     , semialign         >= 1       && < 1.3
                     , semigroupoids     >= 5.2.2   && < 5.4
                     , stm               >= 2.4     && < 2.6
                     , these             >= 1       && < 1.2
  hs-source-dirs:      src
  ghc-options:         -Wall
  default-language:    Haskell2010

executable example-server
  main-is:             Server.hs
  build-depends:       base
                     , bytestring
                     , containers        >= 0.5     && < 0.7
                     , lens
                     , network
                     , reflex
                     , reflex-backend-socket
  hs-source-dirs:      example
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010

executable example-client
  main-is:             Client.hs
  build-depends:       base
                     , bytestring
                     , network
                     , reflex
                     , reflex-backend-socket
  hs-source-dirs:      example
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010


executable example-others
  main-is:             Others.hs
  build-depends:       base
                     , bytestring
                     , network
                     , reflex
                     , reflex-backend-socket
                     , witherable        >= 0.4     && < 0.5
  hs-source-dirs:      example
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010