packages feed

pipes-extra-0.2.0: pipes-extra.cabal

Name: pipes-extra
Version: 0.2.0
License: BSD3
License-file: LICENSE
Author: Paolo Capriotti
Maintainer: p.capriotti@gmail.com
Stability: Experimental
Homepage: https://github.com/pcapriotti/pipes-extra
Category: Control, Enumerator
Build-type: Simple
Synopsis: Various basic utilities for Pipes.
Description: This module contains basic utilities for Pipes to deal with files and chunked binary data, as well as extra combinators like 'zip' and 'tee'.
Cabal-version: >= 1.8

Source-Repository head
    Type: git
    Location: https://github.com/pcapriotti/pipes-extra

flag examples
    description: Build executables for the examples
    default: False

Library
    Build-Depends:
        base (== 4.*),
        transformers (>= 0.2 && < 0.4),
        pipes-core (== 0.1.*),
        bytestring (== 0.9.*)
    Exposed-Modules:
        Control.Pipe.Binary,
        Control.Pipe.Coroutine,
        Control.Pipe.PutbackPipe,
        Control.Pipe.Tee,
        Control.Pipe.Zip

benchmark bench-general
    type: exitcode-stdio-1.0
    hs-source-dirs: . bench
    main-is: general.hs
    build-depends: base == 4.*
                 , pipes-core == 0.1.*
                 , bytestring == 0.9.*
                 , transformers >= 0.2 && < 0.4
                 , conduit == 0.4.*
                 , criterion == 0.6.*

benchmark bench-simple
    type: exitcode-stdio-1.0
    hs-source-dirs: . bench
    main-is: simple.hs
    build-depends: base == 4.*
                 , pipes-core == 0.1.*
                 , transformers >= 0.2 && < 0.4
                 , criterion == 0.6.*

benchmark bench-zlib
    type: exitcode-stdio-1.0
    hs-source-dirs: . bench
    main-is: zlib.hs
    build-depends: base == 4.*
                 , pipes-core == 0.1.*
                 , pipes-zlib < 0.2
                 , bytestring == 0.9.*
                 , transformers >= 0.2 && < 0.4
                 , enumerator == 0.4.*
                 , zlib-enum == 0.2.*
                 , conduit == 0.4.*
                 , zlib-conduit == 0.4.*
                 , zlib == 0.5.*
                 , criterion == 0.6.*

Executable telnet
    if flag(examples)
        build-depends: base == 4.*
                     , pipes-core == 0.1.*
                     , pipes-extra >= 0.1 && < 0.3
                     , transformers == 0.3.*
                     , network == 2.3.*
    else
        buildable: False
    hs-source-dirs: examples
    main-is: telnet.hs

Executable compress
    if flag(examples)
        build-depends: base == 4.*
                     , pipes-core == 0.1.*
                     , pipes-extra >= 0.1 && < 0.3
                     , pipes-zlib < 0.2
    else
        buildable: False
    hs-source-dirs: examples
    main-is: compress.hs

Executable decompress
    if flag(examples)
        build-depends: base == 4.*
                     , pipes-core == 0.1.*
                     , pipes-extra >= 0.1 && < 0.3
                     , pipes-zlib < 0.2
    else
        buildable: False
    hs-source-dirs: examples
    main-is: decompress.hs

test-suite tests
  type: exitcode-stdio-1.0
  hs-source-dirs: tests
  main-is: Tests.hs
  build-depends: base >= 4 && < 5
               , HUnit == 1.2.*
               , bytestring == 0.9.*
               , test-framework == 0.6.*
               , test-framework-hunit == 0.2.*
               , test-framework-th-prime == 0.0.*
               , mtl == 2.1.*
               , pipes-core == 0.1.*
               , pipes-extra == 0.2.*