summaryrefslogtreecommitdiff
path: root/regex-base.cabal
blob: 5499a60512fe3641a3299be4ae8f34f18be58491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
cabal-version:          1.12
name:                   regex-base
version:                0.94.0.2
x-revision:             2

build-type:             Simple
license:                BSD3
license-file:           LICENSE
copyright:              Copyright (c) 2006, Christopher Kuklewicz
author:                 Christopher Kuklewicz
maintainer:             Andreas Abel
homepage:               https://wiki.haskell.org/Regular_expressions
bug-reports:            https://github.com/haskell-hvr/regex-base/issues
synopsis:               Common "Text.Regex.*" API for Regex matching
category:               Text
description:
  This package does not provide the ability to do regular expression matching.
  Instead, it provides the type classes that constitute the abstract API
  that is implemented by @regex-*@ backends such as:
  .
  * <https://hackage.haskell.org/package/regex-posix regex-posix>
  .
  * <https://hackage.haskell.org/package/regex-parsec regex-parsec>
  .
  * <https://hackage.haskell.org/package/regex-dfa regex-dfa>
  .
  * <https://hackage.haskell.org/package/regex-tdfa regex-tdfa>
  .
  * <https://hackage.haskell.org/package/regex-pcre regex-pcre>
  .
  See also <https://wiki.haskell.org/Regular_expressions> for more information.

extra-source-files:
  ChangeLog.md
  README.md

tested-with:
  GHC == 9.6.2
  GHC == 9.4.5
  GHC == 9.2.8
  GHC == 9.0.2
  GHC == 8.10.7
  GHC == 8.8.4
  GHC == 8.6.5
  GHC == 8.4.4
  GHC == 8.2.2
  GHC == 8.0.2
  GHC == 7.10.3
  GHC == 7.8.4
  GHC == 7.6.3
  GHC == 7.4.2
  GHC == 7.2.2
  GHC == 7.0.4

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

source-repository this
  type:     git
  location: https://github.com/haskell-hvr/regex-base.git
  tag:      v0.94.0.2-r2

library
  hs-source-dirs: src

  exposed-modules:
      Text.Regex.Base
      Text.Regex.Base.RegexLike
      Text.Regex.Base.Context
      Text.Regex.Base.Impl

  other-modules:
      Paths_regex_base

  default-language: Haskell2010
  other-extensions:
      MultiParamTypeClasses
      FunctionalDependencies
      TypeSynonymInstances
      FlexibleInstances
      FlexibleContexts

  if impl(ghc >= 7.4)
    default-extensions: Safe
    build-depends: containers >= 0.4.2.1
                 , bytestring >= 0.9.2.1

  build-depends: base       >= 4.3 && < 5
               , containers >= 0.4 && < 0.7
               , bytestring >= 0.9 && < 0.13
               , array      >= 0.3 && < 0.6
               , text       >= 1.2.3 && < 1.3 || >=2.0 && <2.1

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

  ghc-options: -Wall
  if impl(ghc >= 8)
    ghc-options: -Wcompat