patch applied (packages/polyparse): Combinator `apply` is now
promoted to a class method.
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Wed Sep 5 06:41:56 EDT 2007
Wed Sep 5 02:31:51 PDT 2007 Malcolm.Wallace at cs.york.ac.uk
* Combinator `apply` is now promoted to a class method.
Apply is basic, because its implementation depends on whether the
underlying parser type is supposed to be lazy or strict. Many of the
higher-level combinators in T.P.P.Base are now expressed in terms of
`apply`, which removes code duplication in the T.P.P.Lazy module. In
exchange, `failBad` moves out of the class, because it is always just
(commit . fail).
M ./src/Text/ParserCombinators/Poly/Base.hs -29 +32
M ./src/Text/ParserCombinators/Poly/ByteString.hs -1
M ./src/Text/ParserCombinators/Poly/Lazy.hs -86 +13
M ./src/Text/ParserCombinators/Poly/Plain.hs -1
M ./src/Text/ParserCombinators/Poly/State.hs -1
M ./src/Text/ParserCombinators/Poly/StateLazy.hs -2 +8
M ./src/Text/ParserCombinators/Poly/Stream.hs -1
More information about the Cvs-libraries
mailing list