packages feed

replace-attoparsec-1.5.0.0: replace-attoparsec.cabal

name:                replace-attoparsec
version:             1.5.0.0
cabal-version:       1.18
synopsis:            Find, replace, split string patterns with Attoparsec parsers (instead of regex)
homepage:            https://github.com/jamesdbrock/replace-attoparsec
bug-reports:         https://github.com/jamesdbrock/replace-attoparsec/issues
license:             BSD2
license-file:        LICENSE
author:              James Brock <jamesbrock@gmail.com>
maintainer:          James Brock <jamesbrock@gmail.com>
build-type:          Simple
category:            Parsing
description:

  Find text patterns, replace the patterns, split on the patterns. Use
  Attoparsec monadic parsers instead of regular expressions for pattern matching.

extra-doc-files:     README.md
                   , CHANGELOG.md

source-repository head
  type:               git
  location:           https://github.com/jamesdbrock/replace-attoparsec.git

library
  hs-source-dirs:      src
  build-depends:       base >=4.0 && <5.0
                     , attoparsec >=0.4 && <1.0
                     , bytestring >=0.2 && <1.0
                     , text >=0.2 && <3.0
  default-language:    Haskell2010
  exposed-modules:     Replace.Attoparsec.Text
                       Replace.Attoparsec.Text.Lazy
                     , Replace.Attoparsec.ByteString

test-suite tests
  type:                exitcode-stdio-1.0
  main-is:             Tests.hs
  other-modules:       TestByteString TestText TestTextLazy
  hs-source-dirs:      tests
  default-language:    Haskell2010
  build-depends:       base >= 4.0 && < 5.0
                     , replace-attoparsec
                     , attoparsec
                     , hspec >=2.0.0 && <3.0.0
                     , HUnit >=1.1 && <2.0
                     , bytestring
                     , text >=0.2 && <3.0
                     , parsers >=0.1 && < 1.0