packages feed

snappy-hs-0.1.2.0: snappy-hs.cabal

cabal-version:      3.0
name:               snappy-hs
version:            0.1.2.0
synopsis:           Snappy compression library.
description:        A pure Haskell implementation of the Snappy compression spec.
license:            MIT
license-file:       LICENSE
author:             Michael Chavinda
maintainer:         mschavinda@gmail.com
homepage:           https://github.com/mchav/snappy-hs
bug-reports:        https://github.com/mchav/snappy-hs/issues
category:           Codec
build-type:         Simple
extra-doc-files:    CHANGELOG.md, README.md

source-repository head
  type:     git
  location: https://github.com/mchav/snappy-hs

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:  Snappy

    build-depends:    base >=4.11 && <5
                    , bytestring >= 0.11 && < 0.14
    hs-source-dirs:   src
    default-language: Haskell2010
    ghc-options:      -O2 -fexpose-all-unfoldings -fspecialise-aggressively -funbox-strict-fields

executable snappy-hs
    import:           warnings
    main-is:          Main.hs
    build-depends:
        base >=4.11 && <5,
        bytestring >= 0.11 && < 0.14,
        snappy-hs

    hs-source-dirs:   app
    default-language: Haskell2010

test-suite snappy-hs-test
    import:           warnings
    default-language: Haskell2010
    -- other-modules:
    -- other-extensions:
    type:             exitcode-stdio-1.0
    hs-source-dirs:   test
    main-is:          Main.hs
    build-depends:
        base >=4.11 && <5,
        bytestring >= 0.11 && < 0.14,
        snappy-hs

executable snappy-bench
    import:           warnings
    main-is:          Bench.hs
    hs-source-dirs:   benchmark
    build-depends:
        base >=4.11 && <5,
        bytestring >= 0.11 && < 0.14,
        deepseq >= 1.4 && < 1.6,
        time >= 1.14 && < 1.15,
        snappy-hs >= 0.1 && < 1
    default-language: Haskell2010
    ghc-options:      -rtsopts

benchmark snappy-benchmark
    type:       exitcode-stdio-1.0
    main-is:    Main.hs
    hs-source-dirs: benchmark
    build-depends: base >= 4.11 && < 5,
                   criterion >= 1 && <= 1.6.4.0,
                   bytestring >= 0.11 && < 0.14,
                   deepseq >= 1.4 && < 1.6,
                   snappy ^>= 0.2,
                   snappy-hs
    default-language: Haskell2010