[Haskell-cafe] Re: ANN: weighted-regexp-0.1.0.0

Sebastian Fischer sebf at informatik.uni-kiel.de
Tue Jul 27 01:09:52 EDT 2010


On Jul 27, 2010, at 6:57 AM, Sebastian Fischer wrote:

> Maybe I'll add it [noMatch] to the next version. I only need a  
> better string representation ;)

Ha! It's already provided by character classes:

     ghci> accept (fromString "[]") "abc"
     False

I'll add

     noMatch :: RegExp c
     noMatch = psym "[]" (const False)

Sebastian



-- 
Underestimating the novelty of the future is a time-honored tradition.
(D.G.)





More information about the Haskell-Cafe mailing list