HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.

Synopsis
  • 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.