packages feed

webp-0.1.0.0: webp.cabal

cabal-version:      1.18
name:               webp
version:            0.1.0.0
license:            GPL-3
license-file:       LICENSE
copyright:          Copyright: (c) 2020 Vanessa
maintainer:         McHale
author:             Vanessa
synopsis:           JuicyPixels support for WebP format
description:
    Haskell library for webp format, via [c2hs](http://hackage.haskell.org/package/c2hs) and [libwebp](https://developers.google.com/speed/webp/docs/api).

category:           Codec, Image, Compression
build-type:         Simple
extra-source-files: test/data/*.webp
extra-doc-files:
    README.md
    CHANGELOG.md

source-repository head
    type:     darcs
    location: http://hub.darcs.net/vmchale/webp

library
    exposed-modules:    Codec.Picture.WebP
    build-tool-depends: c2hs:c2hs -any
    pkgconfig-depends:  libwebp ==1.1.0 || >1.1.0
    hs-source-dirs:     src
    other-modules:
        WebP.Encode
        WebP.Decode
        WebP.Types

    default-language:   Haskell2010
    other-extensions:   TypeFamilies
    ghc-options:        -Wall
    build-depends:
        base >=4.7 && <5,
        JuicyPixels >=3.0,
        bytestring -any,
        vector -any

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

    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 webp-test
    type:             exitcode-stdio-1.0
    main-is:          Spec.hs
    hs-source-dirs:   test
    default-language: Haskell2010
    ghc-options:      -threaded -rtsopts "-with-rtsopts=-N -K1K" -Wall
    build-depends:
        base -any,
        webp -any,
        tasty -any,
        tasty-hunit -any,
        JuicyPixels -any,
        bytestring -any

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

    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