packages feed

regex-do-2.0: regex-do.cabal

name:                regex-do
version:             2.0
synopsis:            PCRE wrapper
description:         format, search, replace (String | ByteString) with PCRE regex. Utf8-safe
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
source-repository   head
   type: git
   location: https://github.com/ciez/regex-do.git


library
  exposed-modules:
          Text.Regex.Do.Trim
          Text.Regex.Do.Pcre.Match
          Text.Regex.Do.Pcre.Option
          Text.Regex.Do.Pcre.Replace
          Text.Regex.Do.Split
          Text.Regex.Do.Format
          Text.Regex.Do.TypeDo
          Text.Regex.Do.TypeRegex
          Text.Regex.Do.Convert
          Text.Regex.Do.Pad
          Text.Regex.Do.Pcre.MatchSame
          Text.Regex.Do.Pcre.ReplaceOpen
  other-modules:
          Text.Regex.Do.Pcre.Matchf
          Text.Regex.Do.Pcre.Result

  ghc-options:  -fwarn-unused-imports
    
  build-depends:  base <= 5.0,
              regex-base,
              regex-pcre,
              stringsearch,
              bytestring,
              array,
              text


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

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
                        ScopedTypeVariables
                        DeriveFunctor


  main-is: Main.hs
  other-modules:
        TestRegex.TestFormat
        TestRegex.TestPcre
        TestRegex.TestReplace
        TestRegex.TestSplit
        TestRegex.TestTrim

  build-depends:  base <= 5.0,
                  hspec,
                  QuickCheck,
                  regex-base,
                  regex-pcre,
                  stringsearch,
                  bytestring,
                  array,
                  text,
                  regex-do