/var/lib/ghc/package.conf.d/regexpr-0.5.4.conf is in libghc-regexpr-dev 0.5.4-11build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | name: regexpr
version: 0.5.4
id: regexpr-0.5.4-Ib7QKYDJUPm92ND8783Hdi
key: regexpr-0.5.4-Ib7QKYDJUPm92ND8783Hdi
license: LGPL
maintainer: PAF01143@nifty.ne.jp
stability: experimental
homepage: http://homepage3.nifty.com/salamander/second/projects/regexpr/
synopsis: regular expression like Perl/Ruby in Haskell
description:
Regular expression library like Perl and Ruby's regular expressions.
This package has a module RegexPR.
And RegexPR export functions matchRegexPR and gsubRegexPR.
.
> matchRegexPR :: String -> String -> Maybe ((String, (String, String)), [(Int, String)])
> multiMatchRegexPR :: String -> String -> [ ((String, (String, String)), [(Int, String)]) ]
> gmatchRegexPR :: String -> String -> [ ((String, (String, String)), [(Int, String)]) ]
> getbrsRegexPR :: String -> String -> [ String ]
> ggetbrsRegexPR :: String -> String -> [ [ String ] ]
> subRegexPR :: String -> String -> String -> String
> subRegexPRBy :: String -> (String -> String) -> String -> String
> gsubRegexPR :: String -> String -> String -> String
> gsubRegexPRBy :: String -> (String -> String) -> String -> String
> splitRegexPR :: String -> String -> [String]
.
Examples
.
> matchRegexPR "ab(cde)f\\1" "kkkabcdefcdefgh" =>
> Just (("abcdefcde", ("kkk", "fgh")),[(1,"cde")])
> matchRegexPR "(?<=hij)abc" "kkkabchijabcde" =>
> Just (("abc",("kkkabchij","de")),[])
> gsubRegexPR "\\G(\\d\\d\\d)" "\\1," "123456 789" => "123,456, 789"
> subRegexPR "(?<=(.)(.)(.))e" " \\3\\2\\1 " "abcdefg" => "abcd dcb fg"
> gsubRegexPR "(?ixm) aBc . # comment \n\n" "abc!" "abc\nABCDAbcAbc" =>
> "abc!abc!abc!bc"
> gmatchRegexPR "(?=(?<!(?!abc)))abc" "abcdefdefabc" =>
> [(("abc", ("", "defdefabc")), []), (("abc", ("defdef", "")), [])]
> splitRegexPR "\\s*,\\s*" "a,b ,c\t ,d , e" => ["a","b","c","d","e"]
category: Text
author: Yoshikuni Jujo <PAF01143@nifty.ne.jp>
exposed: True
exposed-modules:
Text.RegexPR
hidden-modules: Hidden.RegexPRTypes Hidden.Tools Hidden.RegexPRCore
Hidden.ParseRegexStr Hidden.SrcRegActList
abi: 926e9dd9171468a3dbd4a16ae29c32e3
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/regexpr-0.5.4-Ib7QKYDJUPm92ND8783Hdi
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/regexpr-0.5.4-Ib7QKYDJUPm92ND8783Hdi
dynamic-library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2
data-dir: /usr/share/regexpr
hs-libraries: HSregexpr-0.5.4-Ib7QKYDJUPm92ND8783Hdi
depends:
HUnit-1.5.0.0-DvjF79OHhCC7SzfeEty4OI base-4.9.1.0
mtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6
mtlparse-0.1.4.0-DOofkaqaBWuGYAOg8sILJ7
haddock-interfaces: /usr/lib/ghc-doc/haddock/regexpr-0.5.4/regexpr.haddock
haddock-html: /usr/share/doc/libghc-regexpr-doc/html/
|