HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Modulelens-5.3.6Haskell2010

Data.Tree.Lens

  • 2 values
  • Packagelens-5.3.6
  • 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