packages feed

os-release-0.2.2: os-release.cabal

author:         Jan Matějka
category:       System
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.16
copyright:      2014 Jan Matějka <yac@blesmrt.net>
license:        BSD3
maintainer:     <yac@blesmrt.net>
homepage:       https://github.com/yaccz/os-release
name:           os-release
synopsis:       /etc/os-release helpers
version:        0.2.2
description:    /etc/os-release helpers
extra-doc-files: ChangeLog.rst README.rst

Flag devel
  Description:  Enables -Werror
  Default:      False
  Manual:       True

source-repository head
  type:     git
  location: https://github.com/yaccz/os-release.git

library
    build-depends:
        base < 5
      , parsec
      , containers
      , parsec
      , containers
      , transformers
    default-language:   Haskell2010
    exposed-modules:    System.OsRelease
    ghc-options:
        -Wall
    ghc-prof-options:
        -auto-all
        -prof
    hs-source-dirs:     library

test-suite tests
    build-depends:
        base < 5
      , os-release
      , hspec
      , parsec
      , containers
      , transformers
      , temporary
    default-language:
        Haskell2010

    if flag(devel)
       ghc-options: -Wall -Werror
    else
       ghc-options: -Wall
    hs-source-dirs:
        library
        tests/unit
    main-is:
        Spec.hs
    other-modules:
        System.OsRelease
        OsReleaseSpec
    type:
        exitcode-stdio-1.0

test-suite documentation
    build-depends:
        base < 5
      , process == 1.*
      , regex-compat == 0.*
    default-language:
        Haskell2010
    hs-source-dirs:
        tests
    main-is:
        Haddock.hs
    type:
        exitcode-stdio-1.0

test-suite style
    build-depends:
        base < 5
      , hlint == 1.*
    default-language:
        Haskell2010
    hs-source-dirs:
        tests
    main-is:
        HLint.hs
    type:
        exitcode-stdio-1.0