gfoldl with accumulation
Modulesyb-0.7.3Haskell98
Data.Generics.Twins
"Scrap your boilerplate" --- Generic programming in Haskell See http://www.cs.uu.nl/wiki/GenericProgramming/SYB. The present module provides support for multi-parameter traversal, which is also demonstrated with generic operations like equality.
- 13 values
- Packagesyb-0.7.3
- Exports13
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceTwins.hs
Generic folds and maps that also accumulate
7 declarationsgmapT with accumulation
gmapM with accumulation
gmapQl with accumulation
gmapQr with accumulation
gmapQ with accumulation
Applicative version
Mapping combinators for twin traversal
3 declarationsTwin map for transformation
Twin map for monadic transformation
Twin map for queries
Typical twin traversals
3 declarationsGeneric equality: an alternative to "deriving Eq"
Generic zip controlled by a function with type-specific branches
Generic comparison: an alternative to "deriving Ord"