packages feed

regex-do-1.0: regex-do.cabal

name:                regex-do
version:             1.0
synopsis:            PCRE regex funs
description:         Convenience functions to search, replace, format String | ByteString with PCRE regex
author:              Imants Cekusins
maintainer:          Imants Cekusins
category:            Regex, Search, String
license:             PublicDomain
license-file:        PublicDomain
cabal-version:       >=1.10
build-type:          Simple
homepage:            https://github.com/ciez/regex-do

library
  exposed-modules:
          Regexdo.Trim
          Regexdo.Pcre.Match
          Regexdo.Pcre.Option
          Regexdo.Pcre.Replace
          Regexdo.Pcre.Result
          Regexdo.Search
          Regexdo.Format
          Regexdo.TypeDo
          Regexdo.TypeRegex
          Regexdo.Convert

  ghc-options:  -fwarn-unused-imports
    
  build-depends:  base >=4.8 && <4.9,
              regex-base >= 0.93.2,
              regex-pcre >= 0.94.4,
              stringsearch >= 0.3.6.6,
              bytestring >= 0.10.6.0,
              array >= 0.5.1.0,
              text


  hs-source-dirs:      src
  default-language:    Haskell2010
  default-extensions:   FlexibleInstances
                        MultiParamTypeClasses
                        BangPatterns
                        InstanceSigs
                        OverloadedStrings
                        FlexibleContexts
                        ConstraintKinds
                       

test-suite spec
  default-language:Haskell2010
  type: exitcode-stdio-1.0
  ghc-options:  -fwarn-unused-imports
  hs-source-dirs: test, src
  default-extensions:   FlexibleInstances
                        MultiParamTypeClasses
                        BangPatterns
                        InstanceSigs
                        OverloadedStrings
                        FlexibleContexts
                        ConstraintKinds


  main-is: Main.hs
  other-modules:
        TestRegex.Format
        TestRegex.Pcre
        TestRegex.Replace
        TestRegex.StringSearch
        TestRegex.TestTrim

  build-depends:  base >= 4.8,
                  hspec >= 2.1.7,
                  QuickCheck >= 2.8.1,
                  regex-base >= 0.93.2,
                  regex-pcre >= 0.94.4,
                  stringsearch >= 0.3.6.6,
                  bytestring >= 0.10.6.0,
                  array >= 0.5.1.0,
                  text,
                  regex-do