HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulelens-5.3.5Haskell2010

Data.Tree.Lens

  • 2 values
  • Packagelens-5.3.5
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceLens.hs
valueroot :: Functor f => (a -> f a) -> Tree a -> f (Tree a)
#

A Lens that focuses on the root of a Tree.

Example1 expression
view root $ Node 42 []42