Cabal-Version:          1.12
Name:                   regex-pcre
Version:                0.95.0.0
x-revision:             3

build-type:             Simple
license:                BSD3
license-file:           LICENSE
copyright:              Copyright (c) 2006, Christopher Kuklewicz
author:                 Christopher Kuklewicz
maintainer:
  Herbert Valerio Riedel <hvr@gnu.org>,
  Andreas Abel
homepage:               https://wiki.haskell.org/Regular_expressions
bug-reports:            https://github.com/hvr/regex-pcre/issues
category:               Text

synopsis:    PCRE Backend for "Text.Regex" (regex-base)
description:
  This package provides a <http://pcre.org/ PCRE> backend for the <//hackage.haskell.org/package/regex-base regex-base> API.
  .
  See also <https://wiki.haskell.org/Regular_expressions> for more information.

extra-source-files:
  ChangeLog.md

tested-with:
  -- Haskell CI:
  GHC == 7.0.4
  GHC == 7.2.2
  GHC == 7.4.2
  GHC == 7.6.3
  GHC == 7.8.4
  GHC == 7.10.3
  GHC == 8.0.2
  GHC == 8.2.2
  GHC == 8.4.4
  GHC == 8.6.5
  GHC == 8.8.4
  GHC == 8.10.4
  GHC == 9.0.1
  -- manually (AA, 2021-08-12):
  -- GHC == 9.2.1 -- RC1

flag pkg-config
  default:     True
  manual:      True
  description: Use @pkg-config(1)@ to locate foreign @pcre@ library.

source-repository head
  type:     git
  location: https://github.com/hvr/regex-pcre.git

source-repository this
  type:     git
  location: https://github.com/hvr/regex-pcre.git
  tag:      0.95.0.0-r3

library
  hs-source-dirs: src
  exposed-modules:
      Text.Regex.PCRE
      Text.Regex.PCRE.Wrap
      Text.Regex.PCRE.String
      Text.Regex.PCRE.Sequence
      Text.Regex.PCRE.ByteString
      Text.Regex.PCRE.ByteString.Lazy

  other-modules:
      Paths_regex_pcre

  default-language: Haskell2010
  default-extensions:
      MultiParamTypeClasses
      FunctionalDependencies
      ForeignFunctionInterface
      ScopedTypeVariables
      GeneralizedNewtypeDeriving
      FlexibleContexts
      TypeSynonymInstances
      FlexibleInstances

  build-depends: regex-base == 0.94.*
               , base       >= 4.3 && < 4.17
               , containers >= 0.4 && < 0.7
               , bytestring >= 0.9 && < 0.12
               , array      >= 0.3 && < 0.6

  if !impl(ghc >= 8)
      build-depends: fail == 4.9.*

  if flag(pkg-config)
    pkgconfig-depends: libpcre
  else
    extra-libraries: pcre

  ghc-options:
    -O2
    -Wall -fno-warn-unused-imports
    -- -Wcompat -- options cannot be changed in a revision