Safe Haskell | None |
---|---|
Language | Haskell2010 |
Indexing
ix :: Wrd n -> Lens' (Tree n a) a Source #
Index lens.
>>>
let tree = Node (Node (Leaf 'a') (Leaf 'b')) (Node (Leaf 'c') (Leaf 'd'))
>>>
tree & ix (W1 $ W0 WE) .~ 'z'
Node (Node (Leaf 'a') (Leaf 'b')) (Node (Leaf 'z') (Leaf 'd'))
Orphan instances
FunctorWithIndex (Wrd n) (Tree n) Source # | |
FoldableWithIndex (Wrd n) (Tree n) Source # | |
TraversableWithIndex (Wrd n) (Tree n) Source # | |
itraverse :: Applicative f => (Wrd n -> a -> f b) -> Tree n a -> f (Tree n b) # itraversed :: IndexedTraversal (Wrd n) (Tree n a) (Tree n b) a b # | |
Ixed (Tree n a) Source # | |
Each (Tree n a) (Tree n b) a b Source # | |