cabal-version:
  >= 1.10

name:
  binary-io

version:
  0.3.0

category:
  Data, Parsing, IO

synopsis:
  Read and write values of types that implement Binary

description:
  Read and write values of types that implement Binary
  .
  See module "Data.Binary.IO".

author:
  Ole Krüger <haskell-binary-io@vprsm.de>

maintainer:
  Ole Krüger <haskell-binary-io@vprsm.de>

homepage:
  https://github.com/vapourismo/binary-io

license:
  BSD3

license-file:
  LICENSE

extra-source-files:
  ChangeLog.md

build-type:
  Simple

source-repository head
  type: git
  location: git://github.com/vapourismo/binary-io.git

library
  default-language:
    Haskell2010

  ghc-options:
    -Wall -Wextra -Wno-name-shadowing

  build-depends:
    base == 4.*,
    bytestring,
    binary >= 0.7.2,
    process,
    deque

  hs-source-dirs:
    lib

  exposed-modules:
    Data.Binary.IO
    Data.Binary.IO.Internal.AwaitNotify

test-suite binary-io-tests
  type:
    exitcode-stdio-1.0

  default-language:
    Haskell2010

  ghc-options:
    -Wall -Wextra -Wno-name-shadowing -threaded -with-rtsopts=-N

  build-depends:
    base,
    binary,
    binary-io,
    bytestring,
    process,
    hspec >= 2.7.1,
    async,
    stm

  hs-source-dirs:
    test

  other-modules:
    Data.Binary.IOSpec
    Data.Binary.IO.Internal.AwaitNotifySpec

  main-is:
    Main.hs