Return the children of a type. If to == from then it returns the
original element (in contrast to children)
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
module Data.Generics.Uniplate
Used for defining instances UniplateFoo a => UniplateFoo [a]
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.