Hoogle Search

Within LTS Haskell 24.45 (ghc-9.10.3)

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

  1. mapf :: (a -> b) -> Format r (b -> t) -> Format r (a -> t)

    formatting Formatting.Internal

    Functorial map over a formatter's input. Example: format (mapf (drop 1) string) "hello"

  2. mapAccumL :: (acc -> x -> (acc, y)) -> acc -> Infinite x -> Infinite y

    infinite-list Data.List.Infinite

    Fold an infinite list from the left and return a list of successive reductions, keeping accumulator in a state:

    mapAccumL f acc0 (x1 :< x2 :< ...) =
    let (acc1, y1) = f acc0 x1 in
    let (acc2, y2) = f acc1 x2 in
    ...
    y1 :< y2 :< ...
    
    If you are looking how to traverse with a state, look no further.

  3. mapAccumL' :: (acc -> x -> (acc, y)) -> acc -> Infinite x -> Infinite y

    infinite-list Data.List.Infinite

    Same as mapAccumL, but strict in accumulator.

  4. mapEither :: (a -> Either b c) -> Infinite a -> (Infinite b, Infinite c)

    infinite-list Data.List.Infinite

    Apply a function to every element of an infinite list and separate Left and Right results. This function isn't productive (e. g., head . fst . mapEither f won't terminate), if no elements of the input list result in Left or Right.

  5. mapMaybe :: (a -> Maybe b) -> Infinite a -> Infinite b

    infinite-list Data.List.Infinite

    Apply a function to every element of an infinite list and collect Just results. This function isn't productive (e. g., head . mapMaybe f won't terminate), if no elements of the input list result in Just.

  6. mapped :: forall (f :: Type -> Type) a a' . Functor f => Setter (f a) (f a') a a'

    lens-family Lens.Family2.Stock

    An SEC referencing the parameter of a functor.

  7. mapTrack :: (Track -> Track) -> T -> T

    midi Sound.MIDI.File

    Apply a function to each track.

  8. mapBody :: (T -> T) -> TrackEvent -> TrackEvent

    midi Sound.MIDI.File.Event

    No documentation available.

  9. mapVoice :: (T -> T) -> T -> T

    midi Sound.MIDI.File.Event

    No documentation available.

  10. mapError :: forall e1 e2 (r :: EffectRow) a . Member (Error e2 :: (Type -> Type) -> Type -> Type) r => (e1 -> e2) -> Sem ((Error e1 :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r a

    polysemy Polysemy.Error

    Transform one Error into another. This function can be used to aggregate multiple errors into a single type.

Page 153 of many | Previous | Next