[darcs-users] darcs patch: Recognize a special DARCS_TESTING_PREFS_... (and 2 more)
ganesh at earth.li
Wed Jul 15 22:16:26 UTC 2009
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.
More information about the darcs-users