cabal-version:  1.12
name:           streamly-bytestring
version:        0.2.2
synopsis:       Library for streamly and bytestring interoperation.
description:    Please see the README on GitHub at <https://github.com/psibi/streamly-bytestring#readme>
category:       Streamly, Stream, ByteString
homepage:       https://github.com/psibi/streamly-bytestring#readme
bug-reports:    https://github.com/psibi/streamly-bytestring/issues
author:         Sibi Prabakaran
maintainer:     sibi@psibi.in
copyright:      Sibi Prabakaran
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    Changelog.md
tested-with:  GHC==8.6.5
            , GHC==8.8.4
            , GHC==8.10.7
            , GHC==9.0.1
            , GHC==9.2.7
            , GHC==9.4.4
            , GHC==9.6.2

source-repository head
  type: git
  location: https://github.com/psibi/streamly-bytestring

library
  exposed-modules:
      Streamly.External.ByteString
      Streamly.External.ByteString.Lazy
  other-modules:
      Paths_streamly_bytestring
  hs-source-dirs:
      src
  ghc-options: -Wall -O2
  build-depends:
      base >=4.7 && <5
    , bytestring    == 0.10.12.*
                 || == 0.11.0.*
                 || == 0.11.1.*
                 || == 0.11.2.*
                 -- bytestring-0.11.3.0 causes panics and other issues on
                 -- windows.
                 || ( >= 0.11.3.1 && < 0.11.4 )
                 || == 0.11.4.*
                 || == 0.11.5.*
                 || == 0.12.0.*
    , streamly-core >= 0.1.0 && < 0.2.3
  default-language: Haskell2010

test-suite sb-test
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Paths_streamly_bytestring
  hs-source-dirs:
      test
  ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , bytestring
    , directory
    , filepath
    , hspec
    , hspec-discover
    , quickcheck-instances
    , random
    , streamly-core
    , streamly-bytestring
    , temporary
    , QuickCheck
  default-language: Haskell2010

benchmark sb-benchmark
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Paths_streamly_bytestring
  hs-source-dirs:
      benchmark
  ghc-options: -Wall -O2
  build-depends:
      base >=4.7 && <5
    , bytestring
    , deepseq
    , gauge
    , random
    , streamly-core
    , streamly-bytestring
  default-language: Haskell2010