packages feed

socket-sctp-0.2.0.0: socket-sctp.cabal

name:                socket-sctp
version:             0.2.0.0
synopsis:            STCP socket extensions library.
description:
  This is a binding to the types and operations of `libsctp`.
  This library is intended to used in conjunction with the `socket`
  library it depends on.

license:             MIT
license-file:        LICENSE
author:              Lars Petersen, Shea Levy <shea@shealevy.com>
maintainer:          shea@shealevy.com
category:            System, Socket, Network
build-type:          Simple
cabal-version:       >=1.10
homepage:            https://github.com/shlevy/haskell-socket-sctp
bug-reports:         https://github.com/shlevy/haskell-socket-sctp/issues
tested-with:         GHC==7.10.1, GHC==7.8.3, GHC==8.0.1
extra-source-files:  README.md
                     CHANGELOG.md
                     CONTRIBUTORS.txt
                     src/System/Socket/Protocol/SCTP/hs_sctp.c
                     src/System/Socket/Protocol/SCTP/hs_sctp.h

library
  ghc-options:         -Wall
  exposed-modules:     System.Socket.Protocol.SCTP
  other-modules:       System.Socket.Protocol.SCTP.Internal
  build-depends:       base >= 4.7 && < 5
                     , bytestring < 0.11
                     , socket >= 0.7.0.0 && < 0.8
  hs-source-dirs:      src
  include-dirs:        src/System/Socket/Protocol/SCTP
  c-sources:           src/System/Socket/Protocol/SCTP/hs_sctp.c
  install-includes:    src/System/Socket/Protocol/SCTP/hs_sctp.h
  build-tools:         hsc2hs
  default-language:    Haskell2010
  if !os(freebsd)
    extra-libraries:   sctp

source-repository head
  type:                git
  location:            git://github.com/shlevy/haskell-socket-sctp.git

test-suite SendReceiveMessage
  hs-source-dirs:      tests
  main-is:             SendReceiveMessage.hs
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  build-depends:       base >= 4.7 && < 5
                     , bytestring < 0.11
                     , socket
                     , socket-sctp

test-suite TooSmallBuffer
  hs-source-dirs:      tests
  main-is:             TooSmallBuffer.hs
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  build-depends:       base >= 4.7 && < 5
                     , bytestring < 0.11
                     , socket
                     , socket-sctp

test-suite SendAll
  hs-source-dirs:      tests
  main-is:             SendAll.hs
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  build-tools:         hsc2hs
  build-depends:       base >= 4.7 && < 5
                     , bytestring < 0.11
                     , socket
                     , socket-sctp

test-suite Notifications
  hs-source-dirs:      tests
  main-is:             Notifications.hs
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  build-depends:       base >= 4.7 && < 5
                     , bytestring < 0.11
                     , socket
                     , socket-sctp