regex-0.0.0.2: A Regular Expression Toolkit for regex-base

Text.RE.Edit

data LineNo Source

Instances

data Edits m re s Source

Constructors

data Edit m s Source

data LineEdit s Source

applyEdits :: (IsRegex re s, Monad m, Functor m) => LineNo -> Edits m re s -> s -> m s Source

applyEdit :: (IsRegex re s, Monad m, Functor m) => (s -> s) -> LineNo -> re -> Edit m s -> s -> m (Maybe s) Source

applyLineEdit :: Monoid s => (s -> s) -> LineEdit s -> Maybe s Source