You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Itemizer.string no longer presents its argument as the value: it goes with what seq does:
// Eq t => [t] -> Parser e s (m t) [t]
function string(elems) {
- // this allows a string to be passed in
- var matcher = seq(Array.from(elems).map(literal));
- return seq2R(matcher, pure(elems));
+ return seq(Array.from(elems).map(literal));
}
The text was updated successfully, but these errors were encountered:
mattfenwick
changed the title
list of breaking changes for next version
list of breaking changes for 0.3.0
Oct 15, 2016
New:
update
(write get[State]/put[State] in terms of update[State] #34)repeat
(addrepeat
combinator #27)Breaking changes:
seq
,alt
: no longer use var-args (eliminate use of var-args -- they introduce unnecessary complexity #18)addError
now lives in combinators.js (move cut, addError into combinators module #26)addError
has a different type signature (makecut
andaddError
more generally useful #41)sepBy0
,sepBy1
now live in combinators.js (movesepBy*
combinators intocombinators
module #10)catchError
: argument order swapped fromfunction, parser
toparser, function
(swap parser, function order #24)Not going to do:
Itemizer.string
no longer presents its argument as the value: it goes with whatseq
does:The text was updated successfully, but these errors were encountered: