| Safe Haskell | Safe |
|---|
Regexp
Description
Definition and simplification of regular expressions
Documentation
Regular expressions
simplify :: Regexp -> Regexp #
Simplify a regexp recursively.
>>>simplify $ Star Empty `Concat` Single 'a'(εa)
repeatedly :: Eq a => (a -> a) -> a -> a #
Repeatedly apply f to the argument x until the fix point is reached.
>>>repeatedly simplify $ Star Empty `Concat` Single 'a'a