packages feed

network-light-0.1.0.6: network-light.cabal

cabal-version:      3.0
name:               network-light
version:            0.1.0.6
synopsis:           A slimmed down version of network
description:        A slimmed down version of network, that works with both GHC and MHS.
license:            Apache-2.0
license-file:       LICENSE
author:             Robert Krook
maintainer:         robert@krook.dev
copyright:          2025 Robert Krook
category:           Network
build-type:         Simple
extra-doc-files:    CHANGELOG.md
                    README.md
extra-source-files: examples/*.hs
                    tests/Makefile
                    tests/unittests/**/*.hs
                    tests/unittests/bash-pipes/Makefile
                    tests/unittests/concurrent-clients/Makefile
                    tests/unittests/connect-closed-port/Makefile
                    tests/unittests/hello-world/Makefile
                    tests/unittests/send-string/Makefile
                    tests/unittests/so-reuseaddr-churn/Makefile
bug-reports:        https://github.com/Rewbert/network-light/issues
tested-with:        GHC ==9.4.8
                     || ==9.6.7
                     || ==9.8.1
                     || ==9.8.2
                     || ==9.8.4
                     || ==9.10.1
                     || ==9.10.2
                     || ==9.10.3
                     || ==9.12.2
                     || ==9.12.4
                     || ==9.14.1,
                    MHS ==0.16.4.0

source-repository head
  type:     git
  location: https://github.com/Rewbert/network-light

flag zephyr
  description: Use the Zephyr RTOS sockaddr_in ABI
  default: False
  manual:  True

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:  System.Network
    other-modules:    System.Network.Types
    -- other-extensions:
    if flag(zephyr)
        cpp-options: -DZEPHYR
    build-depends:    base >=4.17 && <5, bytestring >=0.12.2.0 && <0.13
    hs-source-dirs:   src
    default-language: Haskell2010

Test-Suite test-sockaddr-storable
    type: exitcode-stdio-1.0
    Default-language: Haskell2010
    hs-source-dirs: test/Network, src
    main-is: SockAddr.hs
    other-modules: System.Network.Types
    build-depends: base >=4.17 && <5, network-light, QuickCheck