packages feed

regex-pcre-0.95.0.0: regex-pcre.cabal

Cabal-Version:          1.12
Name:                   regex-pcre
Version:                0.95.0.0

build-type:             Simple
license:                BSD3
license-file:           LICENSE
copyright:              Copyright (c) 2006, Christopher Kuklewicz
author:                 Christopher Kuklewicz
maintainer:             hvr@gnu.org
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

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

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

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.14
               , containers >= 0.4 && < 0.7
               , bytestring >= 0.9 && < 0.11
               , 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