packages feed

hasmin-0.3.0.1: hasmin.cabal

name:                hasmin
version:             0.3.0.1
license:             BSD3
license-file:        LICENSE
author:              (c) 2017 Cristian Adrián Ontivero <cristianontivero@gmail.com>
maintainer:          Cristian Adrián Ontivero <cristianontivero@gmail.com>
synopsis:            "A CSS Minifier"
homepage:            https://github.com/contivero/hasmin/
bug-reports:         https://github.com/contivero/hasmin/issues
category:            Text
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10
description:
    A CSS minifier which not only aims at reducing the amount of bytes of the
    output, but also at improving gzip compression. By default, the output is the
    minified CSS file, but hasmin allows also its compression into gzip using
    Google's Zopfli library.
    .
    To use it: ./hasmin input.css > output.css
    .
    By default, most minification techniques are enabled. For a list of
    available flags, do: ./hasmin --help

source-repository head
  type: git
  location: https://github.com/contivero/hasmin.git

executable hasmin
  default-language:    Haskell2010
  ghc-options:         -O2 -Wall -fwarn-tabs -fwarn-unused-do-bind
  main-is:             Main.hs
  other-modules:       Paths_hasmin
  build-depends:       base                 >=4.8        && <5.1
                     , attoparsec           >=0.12       && <0.14
                     , containers           >=0.5        && <0.6
                     , optparse-applicative >=0.11       && <0.14
                     , parsers              >=0.12.3     && <0.13
                     , mainland-pretty      >=0.4.1      && <0.5
                     , text                 >=1.2        && <1.3
                     , hopfli               >=0.2        && <0.3
                     , bytestring           >=0.10.2.0   && <0.11
                     , gitrev               >=1.0.0      && <=1.2.0
                     , matrix               >=0.3.4      && <0.4
                     , mtl                  >=2.2.1      && <2.3
                     , numbers              >=3000.2.0.0 && <3000.3
                     , hasmin

library
  default-language:    Haskell2010
  hs-source-dirs:      src
  ghc-options:         -O2 -Wall -fwarn-tabs -fwarn-unused-do-bind
  exposed-modules:     Hasmin
                     , Hasmin.Config
                     , Hasmin.Types.Class
                     , Hasmin.Types.Stylesheet
                     -- exposed because it is needed by tests:
                     , Hasmin.Parser.Internal
                     , Hasmin.Parser.Value
                     , Hasmin.Types.Color
                     , Hasmin.Types.Declaration
                     , Hasmin.Types.Dimension
                     , Hasmin.Types.Numeric
                     , Hasmin.Types.TransformFunction
                     , Hasmin.Types.Value
                     , Hasmin.Utils
  other-modules:       Hasmin.Parser.Utils
                     , Hasmin.Properties
                     , Hasmin.Selector
                     , Hasmin.Types.BgSize
                     , Hasmin.Types.FilterFunction
                     , Hasmin.Types.Gradient
                     , Hasmin.Types.PercentageLength
                     , Hasmin.Types.Position
                     , Hasmin.Types.RepeatStyle
                     , Hasmin.Types.Shadow
                     , Hasmin.Types.String
                     , Hasmin.Types.TimingFunction
  build-depends:       base            >=4.8        && <5.1
                     , attoparsec      >=0.12       && <0.14
                     , bytestring      >=0.10.2.0   && <0.11
                     , containers      >=0.5        && <0.6
                     , mainland-pretty >=0.4.1      && <0.5
                     , matrix          >=0.3.4      && <0.4
                     , mtl             >=2.2.1      && <2.3
                     , numbers         >=3000.2.0.0 && <3000.3
                     , parsers         >=0.12.3     && <0.13
                     , semigroups      >=0.16       && <0.19
                     , text            >=1.2        && <1.3

test-suite spec
  default-language:    Haskell2010
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             Spec.hs
  ghc-options:         -Wall -fno-warn-orphans
  default-extensions:  OverloadedStrings
  other-modules:       Hasmin.Parser.InternalSpec
                     , Hasmin.Parser.ValueSpec
                     , Hasmin.SelectorSpec
                     , Hasmin.TestUtils
                     , Hasmin.Types.ColorSpec
                     , Hasmin.Types.DeclarationSpec
                     , Hasmin.Types.DimensionSpec
                     , Hasmin.Types.FilterFunctionSpec
                     , Hasmin.Types.GradientSpec
                     , Hasmin.Types.PositionSpec
                     , Hasmin.Types.RepeatStyleSpec
                     , Hasmin.Types.ShadowSpec
                     , Hasmin.Types.StringSpec
                     , Hasmin.Types.StylesheetSpec
                     , Hasmin.Types.TransformFunctionSpec
  build-depends:       base             >=4.7     && <5.1
                     , attoparsec       >=0.12    && <0.14
                     , hspec            >=2.2     && <3.0
                     , hspec-attoparsec >=0.1.0.0 && <0.2
                     , mtl              >=2.2.1   && <2.3
                     , QuickCheck       >=2.8     && <3.0
                     , text             >=1.2     && <1.3
                     , hasmin

test-suite doctest
  default-language:    Haskell2010
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             DocTest.hs
  ghc-options:         -threaded -Wall -fno-warn-orphans
  build-depends:       base             >=4.8     && <5.1
                     , doctest          >=0.11    && <0.12
                     , doctest-discover >=0.1.0.0 && <0.2
                     , doctest          >=0.10
                     , hasmin