packages feed

streaming-pcap-1.1.2: streaming-pcap.cabal

cabal-version:      2.2
name:               streaming-pcap
version:            1.1.2
synopsis:           Stream packets via libpcap.
description:
  Stream packets via libpcap. Requires `libpcap` to be installed.

category:           Web
homepage:           https://github.com/fosskers/streaming-pcap
author:             Colin Woodbury
maintainer:         colin@fosskers.ca
copyright:          2018 - 2023 Colin Woodbury
license:            BSD-3-Clause
license-file:       LICENSE
build-type:         Simple
extra-source-files:
  README.md
  CHANGELOG.md
  test/test.pcap

common warnings
    ghc-options: -Weverything
                 -Wno-all-missed-specialisations

common commons
  default-language: Haskell2010
  ghc-options:      -Wall
  build-depends:
      attoparsec            >=0.13 && <0.15
    , base                  >=4.8  && <5
    , bytestring
    , pcap                  ^>=0.4
    , resourcet             ^>=1.2
    , streaming             >=0.1  && <0.3
    , streaming-attoparsec  ^>=1.0
    , streaming-bytestring  >=0.1.7 && <0.4

library
  import:          commons
  hs-source-dirs:  lib
  exposed-modules:
    Network.Pcap.Streaming
    Network.Pcap.Streaming.Internal

test-suite streaming-pcap-test
  import:         commons
  type:           exitcode-stdio-1.0
  main-is:        Test.hs
  hs-source-dirs: test
  ghc-options:    -threaded -with-rtsopts=-N
  build-depends:
    , streaming-pcap
    , tasty           >=0.11 && <1.5
    , tasty-hunit     >=0.9  && <0.11

-- benchmark streaming-pcap-bench
--   import: commons
--   type: exitcode-stdio-1.0
--   main-is: Bench.hs
--   hs-source-dirs: bench
--   ghc-options: -threaded -O2
--   build-depends:
--       criterion >=1.1 && <1.5
--     , streaming-pcap