Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype GroupReplacer b = GroupReplacer (MatchArray -> ReplaceAcc b -> ReplaceAcc b)
- data ReplaceAcc b = ReplaceAcc {}
- type PosLen = (MatchOffset, MatchLength)
- type E a = Either String a
- newtype Once a = Once a
- newtype All a = All a
- data Regex
- type MatchArray = Array Int (MatchOffset, MatchLength)
- newtype CompOption = CompOption CInt
- data ExecOption
Documentation
newtype GroupReplacer b Source #
see Text.Regex.Do.Replace.Open defaultReplacer
for example implementation
GroupReplacer (MatchArray -> ReplaceAcc b -> ReplaceAcc b) |
Instances
data ReplaceAcc b Source #
Instances
Functor ReplaceAcc Source # | |
Defined in Text.Regex.Do.Type.Do_ fmap :: (a -> b) -> ReplaceAcc a -> ReplaceAcc b # (<$) :: a -> ReplaceAcc b -> ReplaceAcc a # |
type PosLen = (MatchOffset, MatchLength) Source #
Offset, Length
Once a | replace once |
Instances
All a | replace all |
Instances
A compiled regular expression
Instances
type MatchArray = Array Int (MatchOffset, MatchLength) #
0 based array, with 0th index indicating the full match. If the full match location is not available, represent as (0,0).
newtype CompOption #
Instances
data ExecOption #