packages feed

flac-picture-0.1.2: flac-picture.cabal

name:                 flac-picture
version:              0.1.2
cabal-version:        1.18
tested-with:          GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.3
license:              BSD3
license-file:         LICENSE.md
author:               Mark Karpov <markkarpov92@gmail.com>
maintainer:           Mark Karpov <markkarpov92@gmail.com>
homepage:             https://github.com/mrkkrp/flac-picture
bug-reports:          https://github.com/mrkkrp/flac-picture/issues
category:             Codec, Audio, Image
synopsis:             Support for writing picture to FLAC metadata blocks with JuicyPixels
build-type:           Simple
description:          Support for writing picture to FLAC metadata blocks with JuicyPixels.
extra-doc-files:      CHANGELOG.md
                    , README.md
data-files:           audio-samples/*.flac
                    , picture-samples/*.jpeg
                    , picture-samples/*.png

source-repository head
  type:               git
  location:           https://github.com/mrkkrp/flac-picture.git

flag dev
  description:        Turn on development settings.
  manual:             True
  default:            False

library
  build-depends:      JuicyPixels      >= 3.2.6.5 && < 4.0
                    , base             >= 4.8 && < 5.0
                    , bytestring       >= 0.2 && < 0.11
                    , flac             >= 0.1 && < 0.3
  exposed-modules:    Codec.Audio.FLAC.Metadata.Picture
  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  if flag(dev) && impl(ghc >= 8.0)
    ghc-options:      -Wcompat
                      -Wincomplete-record-updates
                      -Wincomplete-uni-patterns
                      -Wnoncanonical-monad-instances
                      -Wnoncanonical-monadfail-instances
  default-language:   Haskell2010

test-suite tests
  main-is:            Spec.hs
  other-modules:      Codec.Audio.FLAC.Metadata.PictureSpec
  hs-source-dirs:     tests
  type:               exitcode-stdio-1.0
  build-depends:      JuicyPixels      >= 3.2.6.5 && < 4.0
                    , base             >= 4.8 && < 5.0
                    , bytestring       >= 0.2 && < 0.11
                    , directory        >= 1.2.2 && < 1.4
                    , flac             >= 0.1 && < 0.3
                    , flac-picture
                    , hspec            >= 2.0 && < 3.0
                    , temporary        >= 1.1 && < 1.4
  build-tools:        hspec-discover   >= 2.0 && < 3.0
  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  default-language:   Haskell2010