lens-2.4: Lenses, Folds and Traversals

PortabilityMTPCs
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Data.Tree.Lens

Description

 

Synopsis

Documentation

root :: Simple Lens (Tree a) aSource

A Lens that focuses on the root of a Tree.

children :: SimpleIndexedTraversal Int (Tree a) (Tree a)Source

A Traversal of the direct descendants of the root of a Tree indexed by its position in the list of children