cabal-version: 3.0

name: text-replace
version: 0.1.0.3
category: Text, Application
synopsis: Simple text replacements from a list of search/replace pairs

description:
    A library and a command-line application
    for simple string replacements in text files.

    The search for strings to replace is performed
    left-to-right, preferring longer matches
    to shorter ones.

homepage:    https://github.com/chris-martin/text-replace
bug-reports: https://github.com/chris-martin/text-replace/issues

author: Chris Martin
maintainer: Chris Martin

license: Apache-2.0
license-file: license.txt

extra-source-files: *.md

source-repository head
    type: git
    location: https://github.com/chris-martin/text-replace

common base
    default-language: Haskell2010
    ghc-options: -Wall
    build-depends:
        base ^>= 4.14 || ^>= 4.15 || ^>= 4.16 || ^>= 4.17
      , text ^>= 1.2.4 || ^>= 2.0

library
    import: base
    hs-source-dirs: src
    exposed-modules: Text.Replace
    build-depends:
        containers ^>= 0.6.4

executable text-replace
    import: base
    hs-source-dirs: app
    main-is: text-replace.hs
    build-depends:
        optparse-applicative ^>= 0.16.1 || ^>= 0.17
      , parsec ^>= 3.1.14
      , text-replace

test-suite properties
    import: base
    type: exitcode-stdio-1.0
    main-is: properties.hs
    hs-source-dirs: test
    ghc-options: -threaded
    default-extensions:
        OverloadedStrings
        QuasiQuotes
        TemplateHaskell
    build-depends:
        hedgehog ^>= 1.0.5 || ^>= 1.0 || ^>= 1.1 || ^>= 1.2
      , neat-interpolation ^>= 0.5.1
      , text-replace