File plan-b.cabal of Package ghc-plan-b

name:                 plan-b
version:              0.2.1
x-revision: 1
cabal-version:        >= 1.10
tested-with:          GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.1
license:              BSD3
license-file:         LICENSE.md
author:               Mark Karpov <markkarpov92@gmail.com>
maintainer:           Mark Karpov <markkarpov92@gmail.com>
homepage:             https://github.com/mrkkrp/plan-b
bug-reports:          https://github.com/mrkkrp/plan-b/issues
category:             System, Filesystem
synopsis:             Failure-tolerant file and directory editing
build-type:           Simple
description:          Failure-tolerant file and directory editing.
extra-doc-files:      CHANGELOG.md
                    , README.md

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

library
  build-depends:      base         >= 4.7   && < 5.0
                    , exceptions   >= 0.8   && < 0.9
                    , path         >= 0.5   && < 0.7
                    , path-io      >= 1.0.1 && < 2.0
                    , transformers >= 0.3   && < 0.6
  if !impl(ghc >= 8.0)
    build-depends:    semigroups   == 0.18.*
  exposed-modules:    System.PlanB
                    , System.PlanB.Type
  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  default-language:   Haskell2010

test-suite tests
  main-is:            Main.hs
  hs-source-dirs:     tests
  type:               exitcode-stdio-1.0
  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  build-depends:      base         >= 4.7   && < 5.0
                    , hspec        >= 2.0   && < 3.0
                    , path         >= 0.5   && < 0.7
                    , path-io      >= 1.0.1 && < 2.0
                    , plan-b
  default-language:   Haskell2010

source-repository head
  type:               git
  location:           https://github.com/mrkkrp/plan-b.git
openSUSE Build Service is sponsored by