Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. gbimap :: GBimap f => (a -> b) -> (c -> d) -> f a c -> f b d

    generic-functor Generic.Functor

    Generic implementation of bimap from Bifunctor. See also GenericBifunctor.

  2. gfmap :: GFunctor f => (a -> b) -> f a -> f b

    generic-functor Generic.Functor

    Generic implementation of fmap. See also GenericFunctor for DerivingVia, using gfmap under the hood.

    Example

    {-# LANGUAGE DeriveGeneric #-}
    
    import GHC.Generics (Generic)
    import Generic.Functor (gfmap)
    
    data Twice a = Twice (Either a a)
    deriving Generic
    
    instance Functor Twice where
    fmap = gfmap
    
    Unlike gsolomap, gfmap is safe to use in all contexts.

  3. gfoldMap :: forall t m a . (GFoldMap m t, Monoid m) => (a -> m) -> t a -> m

    generic-functor Generic.Functor

    Generic implementation of foldMap from Foldable.

  4. class GFoldMap1 m Default Incoherent Fold m a b Rep t a Rep t b => GFoldMapRep a b m (t :: Type -> Type)

    generic-functor Generic.Functor.Internal

    No documentation available.

  5. class GMultimapK Identity arr f g => GMap1 arr (f :: Type -> Type) (g :: Type -> Type)

    generic-functor Generic.Functor.Internal

    No documentation available.

  6. class GMap1 Default Incoherent arr Rep x Rep y => GMultimap arr x y

    generic-functor Generic.Functor.Internal

    Constraint for gmultimap.

  7. class GMultimapK (m :: Type -> Type) arr (f :: Type -> Type) (g :: Type -> Type)

    generic-functor Generic.Functor.Internal

    We use the same class to implement all of fmap, foldMap, traverse, instantiating m as Identity, 'Const (EndoM mm)' and 'Aps n' respectively. Those three cases differ in their instances for K1. (the K stands for Kleisli, because the result is Kleisli m (f ()) (g ())

  8. class MultimapI Default Incoherent arr x y => Multimap arr x y

    generic-functor Generic.Functor.Internal

    Constraint for multimap.

  9. coerceBifoldMap :: Coercible t u => (am -> bm -> t -> m) -> am -> bm -> u -> m

    generic-functor Generic.Functor.Internal

    No documentation available.

  10. coerceFoldMap :: Coercible t u => (am -> t -> m) -> am -> u -> m

    generic-functor Generic.Functor.Internal

    No documentation available.

Page 1159 of many | Previous | Next