HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleuniplate-1.6.13Haskell2010

Data.Generics.UniplateOn

DEPRECATED: Use Data.Generics.Uniplate.Operations instead.

This module retained Haskell 98 compatability, but users who are happy with multi-parameter type classes should look towards Data.Generics.Biplate.

The only function missing from Data.Generics.Uniplate is fold, as it can be constructed from children and has little meaning in a multi-typed setting.

All operations, apart from childrenOn should perform identically to their non On counterparts.

  • 1 type
  • 11 values
  • Packageuniplate-1.6.13
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceUniplateOn.hs
typetype BiplateType from to = from -> ([to], [to] -> from)
#

Return all the top most children of type to within from.

If from == to then this function should return the root as the single child.