From: https://hackage.haskell.org/package/streamly-0.8.0/docs/Streamly-Data-Fold.html
The constructor is not yet exposed via exposed modules… [emphasis mine]
Just to confirm, is your plan actually to expose it at some point?
I suggest this indeed be done. I have in my codebase a Fold that is created on top of another Fold. This is done using a pattern match on the latter, exactly like you are already doing internally in the streamly codebase to implement many of the Fold functions (e.g., lmap, to name one of countless).
From: https://hackage.haskell.org/package/streamly-0.8.0/docs/Streamly-Data-Fold.html
Just to confirm, is your plan actually to expose it at some point?
I suggest this indeed be done. I have in my codebase a
Foldthat is created on top of anotherFold. This is done using a pattern match on the latter, exactly like you are already doing internally in the streamly codebase to implement many of theFoldfunctions (e.g.,lmap, to name one of countless).