]> git.wincent.com - docvim.git/commit
Avoid unwanted intermediate list in `cosmosOf uniplate`
authorGreg Hurrell <greg@hurrell.net>
Wed, 8 Jun 2016 01:41:34 +0000 (18:41 -0700)
committerGreg Hurrell <greg@hurrell.net>
Wed, 8 Jun 2016 01:41:34 +0000 (18:41 -0700)
commitf6f4d3fdb2293e3ad1ee8321c614c68f97e7f812
treeb26d830872e25e1165e03504dc1652cefbf2e9c8
parent1614c718e7ca99bf20a8c487df76558f55ef2b77
Avoid unwanted intermediate list in `cosmosOf uniplate`

Who knows: perhaps Haskell's magical laziness would have made these equivalent,
or perhaps this still ends up producing an intermediate list. But at least it
*looks* better.

Figured out by poring over the function list in the lens docs looking for likely
candidates.
lib/Docvim/Visitor/Section.hs