Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
gfoldMap' :: (GFoldable' t, Monoid m) => (a -> m) -> t a -> mgeneric-deriving Generics.Deriving.Foldable No documentation available.
gfoldMapdefault :: (Generic1 t, GFoldable' (Rep1 t), Monoid m) => (a -> m) -> t a -> mgeneric-deriving Generics.Deriving.Foldable No documentation available.
gmap :: GFunctor f => (a -> b) -> f a -> f bgeneric-deriving Generics.Deriving.Functor No documentation available.
gmap' :: GFunctor' f => (a -> b) -> f a -> f bgeneric-deriving Generics.Deriving.Functor No documentation available.
gmapdefault :: (Generic1 f, GFunctor' (Rep1 f)) => (a -> b) -> f a -> f bgeneric-deriving Generics.Deriving.Functor No documentation available.
gmappend :: GMonoid a => a -> a -> ageneric-deriving Generics.Deriving.Monoid Generic mappend
gmappend' :: forall (x :: k) . GMonoid' f => f x -> f x -> f xgeneric-deriving Generics.Deriving.Monoid No documentation available.
gmappenddefault :: (Generic a, GMonoid' (Rep a)) => a -> a -> ageneric-deriving Generics.Deriving.Monoid No documentation available.
gmapM :: (GTraversable t, Monad m) => (a -> m b) -> t a -> m (t b)generic-deriving Generics.Deriving.Traversable No documentation available.
-
optics-core Data.IntMap.Optics Construct a map from an IxFold. The construction is left-biased (see union), i.e. the first occurrences of keys in the fold or traversal order are preferred.
>>> toMapOf ifolded ["hello", "world"] fromList [(0,"hello"),(1,"world")]
>>> toMapOf (folded % ifolded) [(1,"alpha"),(2, "beta")] fromList [(1,"alpha"),(2,"beta")]
>>> toMapOf (icompose (\a b -> 10*a+b) $ ifolded % ifolded) ["foo", "bar"] fromList [(0,'f'),(1,'o'),(2,'o'),(10,'b'),(11,'a'),(12,'r')]
>>> toMapOf (folded % ifolded) [(1, "hello"), (2, "world"), (1, "dummy")] fromList [(1,"hello"),(2,"world")]