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.)



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to