Optics (lenses, prisms, traversals) for Hylograph data structures.
Provides optics for navigating and transforming tree and graph data structures used in Hylograph visualizations. Built on profunctor-lenses.
spago install hylograph-opticsHylograph.Optics- Re-exports common opticsHylograph.Optics.Tree- Optics for rose treesHylograph.Optics.Graph- Optics for graph structures
import Hylograph.Optics.Tree (nodeValue, children)
-- Focus on root value
root = view nodeValue myTree
-- Modify all children
updated = over children (map transform) myTree- hylograph-optics - Optics utilities (this package)
- hylograph-graph - Graph data structures
- hylograph-layout - Layout algorithms
MIT