Apply a transformation everywhere in bottom-up manner
Modulesyb-0.7.3Haskell98
Data.Generics.Schemes
"Scrap your boilerplate" --- Generic programming in Haskell See http://www.cs.uu.nl/wiki/GenericProgramming/SYB. The present module provides frequently used generic traversal schemes.
- 18 values
- Packagesyb-0.7.3
- Exports18
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceSchemes.hs
Apply a transformation everywhere in top-down manner
Variation on everywhere with an extra stop condition
Monadic variation on everywhere
Apply a monadic transformation at least somewhere
Summarise all nodes in top-down, left-to-right order
Variation of "everything" with an added stop condition
Summarise all nodes in top-down, left-to-right order, carrying some state down the tree during the computation, but not left-to-right to siblings.
Get a list of all entities that meet a predicate
Look up a subterm by means of a maybe-typed filter
Bottom-up synthesis of a data structure; 1st argument z is the initial element for the synthesis; 2nd argument o is for reduction of results from subterms; 3rd argument f updates the synthesised data according to the given term
Compute size of an arbitrary data structure
Count the number of immediate subterms of the given term
Determine depth of the given term
Determine the number of all suitable nodes in a given term
Determine the number of all nodes in a given term
Determine the number of nodes of a given type in a given term
Find (unambiguously) an immediate subterm of a given type