name:                 msgpack-binary
version:              0.0.16
synopsis:             A Haskell implementation of MessagePack
homepage:             http://msgpack.org/
license:              BSD3
license-file:         LICENSE
author:               Hideyuki Tanaka
maintainer:           Iphigenia Df <iphydf@gmail.com>
copyright:            Copyright (c) 2009-2016, Hideyuki Tanaka
category:             Data
stability:            Experimental
cabal-version:        >= 1.10
build-type:           Simple
description:
  A Haskell implementation of MessagePack <http://msgpack.org/>
  .
  This is a fork of msgpack-haskell <https://github.com/msgpack/msgpack-haskell>,
  since the original author is unreachable. This fork incorporates a number of
  bugfixes and is actively being developed.

source-repository head
  type:             git
  location:         https://github.com/TokTok/hs-msgpack-binary.git

library
  default-language: Haskell2010
  hs-source-dirs:
      src
  ghc-options:
      -Wall
      -fno-warn-unused-imports
  exposed-modules:
      Data.MessagePack
  other-modules:
      Data.MessagePack.Get
      Data.MessagePack.Put
  build-depends:
      base                      < 5
    , binary                    >= 0.7.0.0
    , bytestring
    , data-binary-ieee754
    , monad-validate
    , msgpack-types             >= 0.3 && < 0.4
    , text
    , vector

executable msgpack-gen-sample
  default-language: Haskell2010
  hs-source-dirs:
      tools
  ghc-options:
      -Wall
      -fno-warn-unused-imports
  main-is: msgpack-gen-sample.hs
  build-depends:
      base < 5
    , QuickCheck
    , bytestring
    , msgpack-arbitrary
    , msgpack-binary
    , quickcheck-instances
    , time
    , vector

executable msgpack-parser
  default-language: Haskell2010
  hs-source-dirs:
      tools
  ghc-options:
      -Wall
      -fno-warn-unused-imports
  main-is: msgpack-parser.hs
  build-depends:
      base < 5
    , bytestring
    , groom
    , msgpack-binary

test-suite testsuite
  type: exitcode-stdio-1.0
  default-language: Haskell2010
  hs-source-dirs: test
  main-is: testsuite.hs
  other-modules:
      Data.MessagePackSpec
  ghc-options:
      -Wall
      -fno-warn-unused-imports
  build-depends:
      base < 5
    , hspec
    , msgpack-binary
    , msgpack-testsuite         >= 0.0.16 && < 0.1

benchmark benchmark
  type: exitcode-stdio-1.0
  default-language: Haskell2010
  hs-source-dirs: bench
  main-is: benchmark.hs
  other-modules:
      Data.MessagePack.IntBench
      Data.MessagePackBench
  ghc-options:
      -Wall
      -fno-warn-unused-imports
  build-depends:
      base < 5
    , QuickCheck
    , bytestring
    , criterion
    , deepseq
    , msgpack-binary