packages feed

streaming-bytestring-0.2.3: streaming-bytestring.cabal

cabal-version:      >=1.10
name:               streaming-bytestring
version:            0.2.3
synopsis:           Fast, effectful byte streams.
description:
  This library enables fast and safe streaming of byte data, in either @Word8@ or
  @Char@ form. It is a core addition to the <https://github.com/haskell-streaming streaming ecosystem>
  and avoids the usual pitfalls of combinbing lazy @ByteString@s with lazy @IO@.
  .
  We follow the philosophy shared by @streaming@ that "the best API is the one
  you already know". Thus this library mirrors the API of the @bytestring@
  library as closely as possible.
  .
  See the module documentation and the README for more information.

license:            BSD3
license-file:       LICENSE
author:             michaelt
maintainer:
  andrew.thaddeus@gmail.com, what_is_it_to_do_anything@yahoo.com, colin@fosskers.ca

-- copyright:
category:           Data, Pipes, Streaming
build-type:         Simple
extra-source-files:
  README.md
  CHANGELOG.md
  tests/sample.txt
  tests/groupBy.txt

stability:          Experimental
homepage:           https://github.com/haskell-streaming/streaming-bytestring
bug-reports:
  https://github.com/haskell-streaming/streaming-bytestring/issues

tested-with:
  GHC ==7.10.3
   || ==8.0.2
   || ==8.2.2
   || ==8.4.4
   || ==8.6.5
   || ==8.8.4
   || ==8.10.3
   || ==9.0.2

source-repository head
  type:     git
  location: https://github.com/haskell-streaming/streaming-bytestring

library
  default-language: Haskell2010
  hs-source-dirs:   lib
  ghc-options:      -Wall -O2
  exposed-modules:
    Data.ByteString.Streaming
    Data.ByteString.Streaming.Char8
    Data.ByteString.Streaming.Internal
    Streaming.ByteString
    Streaming.ByteString.Char8
    Streaming.ByteString.Internal

  -- other-modules:
  other-extensions:
    BangPatterns
    CPP
    DeriveDataTypeable
    ForeignFunctionInterface
    Unsafe

  build-depends:
      base               >=4.8     && <5.0
    , bytestring
    , deepseq
    , exceptions
    , ghc-prim           >=0.4     && <0.9
    , mmorph             >=1.0     && <1.3
    , mtl                >=2.1     && <2.3
    , resourcet
    , streaming          >=0.1.4.0 && <0.3
    , transformers       >=0.3     && <0.6
    , transformers-base

  if impl(ghc <7.8)
    build-depends:
        bytestring          >=0 && <0.10.4.0
      , bytestring-builder

  else
    if impl(ghc <8.0)
      build-depends: bytestring >=0.10.4 && <0.11

    else
      build-depends: bytestring >=0.10.4 && <0.12

  if impl(ghc <8.0)
    build-depends: semigroups

test-suite test
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  hs-source-dirs:   tests
  main-is:          Test.hs
  build-depends:
      base                  >=4        && <5
    , bytestring
    , resourcet             >=1.1
    , smallcheck            >=1.1.1
    , streaming
    , streaming-bytestring
    , tasty                 >=0.11.0.4
    , tasty-hunit           >=0.9
    , tasty-smallcheck      >=0.8.1
    , transformers