@@ -247,6 +247,11 @@ module Streamly.Internal.Data.Unfold
247247 , bind
248248
249249 -- ** Resource Management
250+ -- | 'bracket' is the most general resource management operation, all other
251+ -- operations can be expressed using it. These functions have IO suffix
252+ -- because the allocation and cleanup functions are IO actions. For
253+ -- generalized allocation and cleanup functions see the functions without
254+ -- the IO suffix in the "streamly" package.
250255 , gbracket_
251256 , gbracketIO
252257 , before
@@ -258,6 +263,10 @@ module Streamly.Internal.Data.Unfold
258263 , bracket_
259264
260265 -- ** Exceptions
266+ -- | Most of these combinators inhibit stream fusion, therefore, when
267+ -- possible, they should be called in an outer loop to mitigate the cost.
268+ -- For example, instead of calling them on a stream of chars call them on a
269+ -- stream of arrays before flattening it to a stream of chars.
261270 , onException
262271 , handle
263272 )