[Haskell-cafe] ANN: weighted-regexp-0.1.1.0
Sebastian Fischer
sebf at informatik.uni-kiel.de
Tue Jul 27 03:50:46 EDT 2010
I have released weighted-regexp-0.1.1.0 with two additional combinators:
-- | Does not match anything. 'noMatch' is an identity for 'alt'.
--
noMatch :: RegExp c
-- |
-- Matches a sequence of the given regular expressions in any
-- order. For example, the regular expression
--
-- @
-- perm (map char \"abc\")
-- @
--
-- has the same meaning as
--
-- @
-- abc|acb|bcc|bac|cba|cab
-- @
--
-- and is represented as
--
-- @
-- a(bc|cb)|b(ca|ac)|c(ba|ab)
-- @
--
perm :: [RegExp c] -> RegExp c
Cheers,
Sebastian
--
Underestimating the novelty of the future is a time-honored tradition.
(D.G.)
More information about the Haskell-Cafe
mailing list