Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. (%<|) :: Double -> Buffer % 1 -> Buffer

    text-builder-linear Data.Text.Builder.Linear.Buffer

    Prepend the decimal representation of a Double. Matches show in displaying in standard or scientific notation (see examples in (|>%)).

  2. (%+) :: Format r a -> Format r' r -> Format r' a

    formatting Formatting

    Concatenate two formatters with a space in between.

    >>> :set -XOverloadedStrings
    
    >>> format (int %+ "+" %+ int %+ "=" %+ int) 2 3 5
    "2 + 3 = 5"
    

  3. (%.) :: Format r (Builder -> r') -> Format r' a -> Format r a

    formatting Formatting

    Function compose two formatters. Will feed the result of one formatter into another.

  4. (%+) :: Format r a -> Format r' r -> Format r' a

    formatting Formatting.Internal

    Concatenate two formatters with a space in between.

    >>> :set -XOverloadedStrings
    
    >>> format (int %+ "+" %+ int %+ "=" %+ int) 2 3 5
    "2 + 3 = 5"
    

  5. (%.) :: Format r (Builder -> r') -> Format r' a -> Format r a

    formatting Formatting.Internal

    Function compose two formatters. Will feed the result of one formatter into another.

  6. (%.) :: forall (c :: Symbol) r . (WeightBuilder a, c ~ First a) => W c -> Prec a r -> (a, Int, r)

    generic-random Generic.Random.Internal.Generic

    No documentation available.

  7. (%=) :: MonadState s m => ASetter s s a b -> (a -> b) -> m ()

    microlens-mtl Lens.Micro.Mtl

    Modify state by applying a function to a part of the state. An example:

    >>> execState (do _1 %= (+1); _2 %= reverse) (1,"hello")
    (2,"olleh")
    
    Implementation:
    l %= f = modify (l %~ f)
    
    If you also want to get the value before/after the modification, use (<<%=)/(<%=). There are a few specialised versions of (%=) which mimic C operators:
    • (+=) for addition
    • (-=) for substraction
    • (*=) for multiplication
    • (//=) for division

  8. (%~) :: Setter s t a b -> (a -> b) -> s -> t

    lens-family Lens.Family2

    Modify all referenced fields.

  9. (%!=) :: MonadState s m => Setter s s a b -> (a -> b) -> m ()

    lens-family Lens.Family2.State.Lazy

    Strictly modify a field of the state.

  10. (%%=) :: MonadState s m => LensLike (Writer c) s s a b -> (a -> (c, b)) -> m c

    lens-family Lens.Family2.State.Lazy

    (%%=) :: MonadState s m => Lens s s a b -> (a -> (c, b)) -> m c
    
    Modify a field of the state while returning another value.
    (%%=) :: (MonadState s m, Monoid c) => Traversal s s a b -> (a -> (c, b)) -> m c
    
    Modify each field of the state and return the mconcat of the other values.

Page 16 of many | Previous | Next