packages feed

lzo-0.1.1.2: lzo.cabal

cabal-version:      2.0
name:               lzo
version:            0.1.1.2
license:            BSD3
license-file:       LICENSE
copyright:          Copyright: (c) 2020 Vanessa McHale
maintainer:         vamchale@gmail.com
author:             Vanessa McHale
bug-reports:        https://hub.darcs.net/vmchale/sak/issues
synopsis:           minilzo bundled for Haskell
description:
    A small library wrapping minilzo allowing lzop compression in Haskell.

category:           Codec,Compression
build-type:         Simple
extra-source-files:
    cbits/minilzo.h
    cbits/lzodefs.h
    cbits/lzoconf.h

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

source-repository head
    type:     darcs
    location: https://hub.darcs.net/vmchale/sak
    subdir:   lzo

library
    exposed-modules:    Codec.Compression.Lzo
    build-tool-depends: hsc2hs:hsc2hs -any
    cc-options:         -O3
    c-sources:          cbits/minilzo.c
    hs-source-dirs:     src
    other-modules:
        Codec.Compression.Lzo.Block
        Codec.Compression.Lzo.File

    default-language:   Haskell2010
    include-dirs:       cbits
    ghc-options:        -Wall -O2
    build-depends:
        base >=4.9 && <5,
        bytestring -any,
        digest -any,
        binary -any

    if impl(ghc >=8.0)
        ghc-options:
            -Wincomplete-uni-patterns -Wincomplete-record-updates
            -Wredundant-constraints -Widentities

    if impl(ghc >=8.4)
        ghc-options: -Wmissing-export-lists

    if impl(ghc >=8.2)
        ghc-options: -Wcpp-undef

    if impl(ghc >=8.10)
        ghc-options: -Wunused-packages

test-suite lzo-test
    type:             exitcode-stdio-1.0
    main-is:          Spec.hs
    hs-source-dirs:   test
    default-language: Haskell2010
    ghc-options:      -threaded -rtsopts -with-rtsopts=-N -Wall
    build-depends:
        base -any,
        lzo -any,
        tasty -any,
        tasty-hunit -any,
        bytestring -any

    if impl(ghc >=8.0)
        ghc-options:
            -Wincomplete-uni-patterns -Wincomplete-record-updates
            -Wredundant-constraints -Widentities

    if impl(ghc >=8.4)
        ghc-options: -Wmissing-export-lists

    if impl(ghc >=8.2)
        ghc-options: -Wcpp-undef

    if impl(ghc >=8.10)
        ghc-options: -Wunused-packages

benchmark lzo-bench
    type:             exitcode-stdio-1.0
    main-is:          Bench.hs
    hs-source-dirs:   bench
    default-language: Haskell2010
    ghc-options:      -Wall
    build-depends:
        base -any,
        lzo -any,
        criterion -any,
        bytestring -any

    if impl(ghc >=8.0)
        ghc-options:
            -Wincomplete-uni-patterns -Wincomplete-record-updates
            -Wredundant-constraints -Widentities

    if impl(ghc >=8.4)
        ghc-options: -Wmissing-export-lists

    if impl(ghc >=8.2)
        ghc-options: -Wcpp-undef

    if impl(ghc >=8.10)
        ghc-options: -Wunused-packages