Help needed with Data.Version

Krasimir Angelov kr.angelov at gmail.com
Wed Mar 23 09:55:47 EST 2005


Hi All,

I have found a bug in Data.Version. The expression:

readP_to_S parseVersion "1.0" 

produces:

[(Version {versionBranch = [1], versionTags = []},".0"),(Version
{versionBranch= [1,0], versionTags = []},"")]

With other words the parser is ambiguous. Could someone with more
experience with ReadP parser combinators fix that?

Cheers,
 Krasimir


More information about the Libraries mailing list