On Wed, 15 Jul 2009, Eric Kow wrote:

I don't yet understand the significance of the
(BL.fromChunks .  return) here.
The return is really just (:[]) and fromChunks is a way to construct a lazy
bytestring: it goes from a list of strict bytestrings to a lazy bytestring. The
return may be flipped to (:[]) for better readability I guess?

Probably just a one-liner saying what's up

I'd favour the (:[]) without any further explanation. Using return here is
just obfuscated since the monad nature of list isn't relevant. Beyond that
it's obvious what's going on by looking at the docs for fromChunks.

Ganesh

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to