[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bad behavior in haskell-regex-tdfa version 1.1.3



On Mon, Jul 19, 2010 at 1:22 PM, Joachim Breitner <nomeata@debian.org> wrote:
Hi David,

Am Montag, den 19.07.2010, 11:26 +0100 schrieb David Fox:
> I'm getting errors like this from version 1.1.3 of haskell-regex-tdfa
> which is now in sid:
>
>   Explict error in module Text.Regex.TDFA.NewDFA : compressOrbit,1
>
> reverting to 1.1.2 fixes it.  Also, the homepage and the darcs repo
> given in the cabal file appear to be out of date.
>

hmm, not good. Do you have a minimal test case?

...I was hoping you wouldn't say that.  Lets see ... ok, attached.

import Text.Regex.TDFA

text="haskell-applicative-extras (0.1.5) unstable; urgency=low\n\n  * New upstream, patches from Jeremy.\n\n -- David Fox <dsf@seereason.com>  Sun, 13 Sep 2009 09:17:52 -0700\n\nhaskell-applicative-extras (0.1.3) unstable; urgency=low\n\n  * Debianization generated by cabal-debian\n\n -- David Fox <dsf@seereason.com>  Sun, 23 Nov 2008 08:45:03 -0500\n\n"
entryRE="^([ \t]*\n)*([^ \t(]*)[ \t]*\\(([^)]*)\\)[ \t]*([^;]*);[ \t]*urgency=([^\n]*)\n([ \t]*\n)*((\n| \n| -\n|([^ ]| [^--]| -[^--])[^\n]*\n)*) -- ([ ]*([^ ]+ )* )([^\n]*)\n([ \t]*\n)*"

main = putStrLn . show . mrSubList $ (text =~ entryRE :: MatchResult String)

Reply to: