fix: minor fixes
This commit is contained in:
parent
e1c2481e70
commit
e05c74f42f
@ -96,6 +96,7 @@ fromTransform t =
|
|||||||
pure $ Done unit
|
pure $ Done unit
|
||||||
yieldFromReadableHalf =
|
yieldFromReadableHalf =
|
||||||
flip tailRecM unit $ const do
|
flip tailRecM unit $ const do
|
||||||
|
liftAff $ delay $ wrap 0.0
|
||||||
res <- liftEffect (O.read t)
|
res <- liftEffect (O.read t)
|
||||||
case res of
|
case res of
|
||||||
O.ReadJust a -> do
|
O.ReadJust a -> do
|
||||||
|
@ -85,9 +85,10 @@ chunked size = do
|
|||||||
Rec.whileJust $ runMaybeT do
|
Rec.whileJust $ runMaybeT do
|
||||||
a <- MaybeT await
|
a <- MaybeT await
|
||||||
chunkPut a
|
chunkPut a
|
||||||
len <- chunkLength
|
len <- lift chunkLength
|
||||||
when (len >= size) $ lift $ yield =<< Just <$> chunkTake
|
when (len >= size) $ lift $ yield =<< Just <$> chunkTake
|
||||||
yield =<< Just <$> chunkTake
|
len <- chunkLength
|
||||||
|
when (len > 0) $ yield =<< Just <$> chunkTake
|
||||||
yield Nothing
|
yield Nothing
|
||||||
|
|
||||||
-- | Equivalent of unix `uniq`, filtering out duplicate values passed to it.
|
-- | Equivalent of unix `uniq`, filtering out duplicate values passed to it.
|
||||||
|
Loading…
Reference in New Issue
Block a user