Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- genericRelabel :: (Applicative m, Generic1 f, GHasLabel (Rep1 f)) => (Maybe Symbol -> a -> m b) -> f a -> m (f b)
- class GHasLabel f where
- class Functor f => HasLabel f where
Documentation
genericRelabel :: (Applicative m, Generic1 f, GHasLabel (Rep1 f)) => (Maybe Symbol -> a -> m b) -> f a -> m (f b) Source #
Generic implementation of relabel
the never provides symbols
class GHasLabel f where Source #
Implementation details for genericRelabel
GHasLabel V1 Source # | |
GHasLabel U1 Source # | |
GHasLabel Par1 Source # | |
HasLabel f => GHasLabel (Rec1 f) Source # | |
GHasLabel (K1 i a) Source # | |
(GHasLabel f, GHasLabel g) => GHasLabel ((:+:) f g) Source # | |
(GHasLabel f, GHasLabel g) => GHasLabel ((:*:) f g) Source # | |
(Traversable f, GHasLabel g) => GHasLabel ((:.:) f g) Source # | |
GHasLabel f => GHasLabel (M1 i c f) Source # | |
class Functor f => HasLabel f where Source #
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> f a -> m (f b) Source #
Given a function for resolving labels, where the presence of a symbol denotes a label in a different function, rename all labels in a function.