packages feed

random-bytestring-0.1.0: random-bytestring.cabal

Name: random-bytestring
Version: 0.1.0
Synopsis: Efficient generation of random bytestrings
Description:
    Efficient generation of random bytestrings
Homepage: https://www.github.com/larskuhtz/random-bytestring
License: MIT
Author: Lars Kuhtz <lakuhtz@gmail.com>
Maintainer: Lars Kuhtz <lakuhtz@gmail.com>
Copyright: Copyright (c) 2017 Lars Kuhtz <lakuhtz@gmail.com>
Category: System
Build-type: Simple
Cabal-version: >= 1.18
Tested-With: GHC == 7.8.4, GHC == 7.10.2, GHC == 8.0.2
License-file: LICENSE

extra-doc-files:
    README.md,
    CHANGELOG.md

source-repository head
    type: git
    location: https://www.github.com/larskuhtz/random-bytestring

Library
    default-language: Haskell2010
    hs-source-dirs: src

    exposed-modules:
        Data.ByteString.Random

    build-depends:
        base >= 4.7 && < 4.10 && < 4.10,
        bytestring >= 0.10,
        mwc-random >= 0.13

    if impl(ghc < 7.10)
        build-depends:
            nats >= 1.1

    ghc-options: -Wall

Benchmark benchmark
    default-language: Haskell2010
    type: exitcode-stdio-1.0
    main-is: benchmark.hs
    hs-source-dirs: benchmark
    ghc-options: -Wall -O2 -threaded -with-rtsopts=-N -rtsopts
    build-depends:
        random-bytestring,
        async >= 2.1,
        base >= 4.7 && < 4.10,
        bytestring >= 0.10,
        criterion >= 1.1

    if impl(ghc < 7.10)
        build-depends:
            nats >= 1.1

    other-modules:
        Benchmarks

Benchmark benchmark-compare
    default-language: Haskell2010
    type: exitcode-stdio-1.0
    main-is: benchmark-compare.hs
    hs-source-dirs: benchmark
    ghc-options: -Wall -O2 -threaded -with-rtsopts=-N -rtsopts
    build-depends:
        random-bytestring,
        async >= 2.1,
        base >= 4.7 && < 4.10,
        bytestring >= 0.10,
        criterion >= 1.1,
        entropy >= 0.3,
        ghc-prim >= 0.3,
        mwc-random >= 0.13,
        primitive >= 0.6,
        random >= 1.1

    if impl(ghc < 7.10)
        build-depends:
            nats >= 1.1

    other-modules:
        Benchmarks,
        Implementations

Benchmark eventlog-compare
    default-language: Haskell2010
    type: exitcode-stdio-1.0
    main-is: eventlog-compare.hs
    hs-source-dirs: benchmark
    ghc-options: -Wall -O2 -threaded -with-rtsopts=-N -rtsopts -eventlog
    build-depends:
        random-bytestring,
        async >= 2.1,
        base >= 4.7 && < 4.10,
        bytestring >= 0.10,
        criterion >= 1.1,
        entropy >= 0.3,
        ghc-prim >= 0.3,
        mwc-random >= 0.13,
        primitive >= 0.6,
        random >= 1.1
    other-modules:
        Benchmarks,
        Implementations