packages feed

ignore-0.1.1.0: ignore.cabal

name:                ignore
version:             0.1.1.0
synopsis:            Handle ignore files of different VCSes
description:         Library and tiny tool for working with ignore files of different version control systems
homepage:            http://github.com/agrafix/ignore
license:             BSD3
license-file:        LICENSE
author:              Alexander Thiemann <mail@athiemann.net>
maintainer:          Alexander Thiemann <mail@athiemann.net>
copyright:           (c) 2015 Alexander Thiemann
category:            System
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

flag without-pcre
     manual: True
     default: False
     description: Disable pcre support. If you enable this flag, version control ignore files that rely on pcre will not work correctly

library
  hs-source-dirs:      src
  exposed-modules:
                       Ignore
  other-modules:
                       Ignore.Types
                       Ignore.Core
                       Ignore.Builder
                       Ignore.VCS.Git
                       Ignore.VCS.Mercurial
                       Ignore.VCS.Darcs
  build-depends:
                       base >= 4 && < 5,
                       path >= 0.5.1,
                       Glob >=0.7,
                       text >=1.2.0.4,
                       mtl >=2.1.3.1,
                       directory >= 1.2.1.0
  if !flag(without-pcre)
    build-depends:     pcre-heavy >=0.2
  else
    cpp-options:       -DNO_PCRE
  default-language:    Haskell2010

executable ignore
  hs-source-dirs:      app
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:
                       base,
                       ignore,
                       path >= 0.5.1,
                       directory >= 1.2.1.0
  default-language:    Haskell2010

test-suite ignore-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  other-modules:
                       Ignore.VCS.GitSpec
                       Ignore.VCS.MercurialSpec
  build-depends:
                       base,
                       ignore,
                       text >=1.2.0.4,
                       HTF >=0.12.1
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/agrafix/ignore