Add lens regex package

This commit is contained in:
Norbert Litkowski 2021-04-07 12:43:50 +02:00
parent 4ad7fce898
commit 15c2e705b1
4 changed files with 23 additions and 3 deletions

View File

@ -11,6 +11,7 @@ import Data.List.Utils (replace)
import Text.Regex.Posix
import Text.Printf
import Control.Lens.Regex.Text
getLinkAndText xpathCondition = proc doc -> do
xpathTrees <- getXPathTrees xpathCondition -< doc

View File

@ -70,6 +70,7 @@ executable zborbielawa
, MissingH
, regex-posix
, shadow-library
, lens-regex-pcre
default-language: Haskell2010

View File

@ -1,5 +1,9 @@
flags: {}
packages:
- '.'
extra-deps: [hxt-xpath-9.1.2.2]
extra-deps: [
hxt-xpath-9.1.2.2,
lens-regex-pcre-1.1.0.0,
pcre-light-0.4.1.0
]
resolver: lts-11.9

View File

@ -11,6 +11,20 @@ packages:
sha256: aee2f75974e868ff429b8ff349a29667536c60397098f5dfedc968d1951511bb
original:
hackage: hxt-xpath-9.1.2.2
- completed:
hackage: lens-regex-pcre-1.1.0.0@sha256:a6053fefae59f6b53b4741e5a75c5fae350af80dbf62e8673b565e1c3f34f8b9,2209
pantry-tree:
size: 630
sha256: 84a02d84433d92c5e2a9a7bfd662244be607b4004c7d4d6fd1ba53adbc655022
original:
hackage: lens-regex-pcre-1.1.0.0
- completed:
hackage: pcre-light-0.4.1.0@sha256:4902ef06b037fd79448c7a63a65c1a4a1bf0bbc15ea7e67e71d52ec995e18460,1868
pantry-tree:
size: 467
sha256: 5e5f8d948ba577d4d838895ccb3533c6ef9876ef60884dae8342a77934cc2ec2
original:
hackage: pcre-light-0.4.1.0
snapshots:
- completed:
size: 507596