Skip to content

Commit 3e7bda1

Browse files
committed
Fix deprecations in the benchmarks
1 parent f959abd commit 3e7bda1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmark/Streamly/Benchmark/Data/ParserK.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,11 @@ takeWhileFailD predicate (Fold fstep finitial _ ffinal) =
230230
fres <- fstep s a
231231
return
232232
$ case fres of
233-
Fold.Partial s1 -> Partial 0 s1
234-
Fold.Done b -> Done 0 b
233+
Fold.Partial s1 -> SPartial 1 s1
234+
Fold.Done b -> SDone 1 b
235235
else return $ Error "fail"
236236

237-
extract s = fmap (Done 0) (ffinal s)
237+
extract s = fmap (SDone 1) (ffinal s)
238238

239239
{-# INLINE takeWhileFail #-}
240240
takeWhileFail :: CONSTRAINT =>

0 commit comments

Comments
 (0)