Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
transformBiM :: (Monad m, Biplate from to) => (to -> m to) -> from -> m fromuniplate Data.Generics.Biplate No documentation available.
transform :: Uniplate on => (on -> on) -> on -> onuniplate Data.Generics.Uniplate Transform every element in the tree, in a bottom-up manner. For example, replacing negative literals with literals:
negLits = transform f where f (Neg (Lit i)) = Lit (negate i) f x = x
transformM :: (Monad m, Uniplate on) => (on -> m on) -> on -> m onuniplate Data.Generics.Uniplate Monadic variant of transform
-
uniplate Data.Generics.Uniplate.Data No documentation available.
transformBis :: Data a => [[Transformer]] -> a -> auniplate Data.Generics.Uniplate.Data Apply a sequence of transformations in order. This function obeys the equivalence:
transformBis [[transformer f],[transformer g],...] == transformBi f . transformBi g . ...
Each item of type [Transformer] is applied in turn, right to left. Within each [Transformer], the individual Transformer values may be interleaved. The implementation will attempt to perform fusion, and avoid walking any part of the data structure more than necessary. To further improve performance, you may wish to partially apply the first argument, which will calculate information about the relationship between the transformations.transformer :: Data a => (a -> a) -> Transformeruniplate Data.Generics.Uniplate.Data Wrap up a (a -> a) transformation function, to use with transformBis
-
uniplate Data.Generics.Uniplate.DataOnly No documentation available.
transform :: Uniplate on => (on -> on) -> on -> onuniplate Data.Generics.Uniplate.DataOnly Transform every element in the tree, in a bottom-up manner. For example, replacing negative literals with literals:
negLits = transform f where f (Neg (Lit i)) = Lit (negate i) f x = x
transformBi :: Biplate from to => (to -> to) -> from -> fromuniplate Data.Generics.Uniplate.DataOnly No documentation available.
transformBiM :: (Monad m, Applicative m, Biplate from to) => (to -> m to) -> from -> m fromuniplate Data.Generics.Uniplate.DataOnly No documentation available.