Hoogle Search

Within LTS Haskell 24.5 (ghc-9.10.2)

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

  1. (&+) :: forall (saytag :: Symbol) m n . (Sayable saytag m, Sayable saytag n) => m -> n -> Saying saytag

    sayable Text.Sayable

    A helper operator allowing two Sayable items to be composed into a Saying by placing the two Sayable items immediately adjacent with no intervening spaces. This is the high-density version of the more common &- operator.

    >>> sez @"info" $ t'"hello" &+ t'"world"
    "helloworld"
    

  2. (&+*) :: forall (tag :: Symbol) m e t . (Sayable tag m, Sayable tag e, Foldable t) => m -> t e -> Saying tag

    sayable Text.Sayable

    A helper operator that generates a sayable from a foldable group (e.g. list) of sayable items. This helper is linke the &* operator except that the folded output is immediately adjacent to the preceeding sayable output instead of separated by a space; this is useful for situations where the folded output has delimiters like parentheses or brackets.

    >>> sez @"info" $ t'"three:" &- '(' &+* [1,2,3::Int] &+ ')'
    "three: (1, 2, 3)"
    
    If the second argument is an empty collection then no output is generated for it.

  3. (&+?) :: forall (saytag :: Symbol) m n . (Sayable saytag m, Sayable saytag n) => m -> Maybe n -> Saying saytag

    sayable Text.Sayable

    A helper operator that emits the first argument and optionally emits a the Just value of the second argument immediately thereafter if the second argument is not Nothing

    >>> sez @"info" $ t'"It's" &+? Nothing &- t'"ok" &+? Just "time"
    "It's oktime"
    
    @since: 1.2.0.0

  4. (&-) :: forall (saytag :: Symbol) m n . (Sayable saytag m, Sayable saytag n) => m -> n -> Saying saytag

    sayable Text.Sayable

    A helper operator allowing two Sayable items to be composed into a Saying. This is the most common operator used to construct composite Sayable messages. The two Sayable items are separated by a space.

    >>> sez @"info" $ t'"hello" &- t'"world"
    "hello world"
    

  5. (&:*) :: forall (tag :: Symbol) m e t . (Sayable tag m, Sayable tag e, Foldable t) => m -> t e -> Saying tag

    sayable Text.Sayable

    A helper operator that generates a sayable from a list of sayable items, separated by the first sayable argument (instead of the ", " that use used by the &* operator).

    >>> sez @"info" $ t'"three:" &- t'".." &:* [1, 2, 3::Int]
    "three: 1..2..3"
    

  6. (&<) :: forall (saytag :: Symbol) m n . (Sayable saytag m, Sayable saytag n) => m -> n -> Saying saytag

    sayable Text.Sayable

    A helper operator that generates a newline between its two arguments. Many times the &- operator is a better choice to allow normal prettyprinter layout capabilities, but in situations where it is known that multiple lines will or should be generated, this operator makes it easy to separate the lines.

    >>> sez @"info" $ t'"Hello" &< t'"world"
    "Hello\nworld"
    
    @since: 1.1.0.0

  7. (&<*) :: forall (saytag :: Symbol) m n t . (Sayable saytag m, Sayable saytag n, Foldable t) => m -> t n -> Saying saytag

    sayable Text.Sayable

    A helper operator that combines &< and &* which will generate a newline between its two arguments, where the second argument is a foldable collection whose elements will be sayable emitted with comma separators.

    >>> sez @"info" $ t'"three:" &<* [1, 2, 3::Int]
    "three:\n1, 2, 3"
    
    @since: 1.1.0.0

  8. (&<?) :: forall (saytag :: Symbol) m n . (Sayable saytag m, Sayable saytag n) => m -> Maybe n -> Saying saytag

    sayable Text.Sayable

    A helper operator that emits the first argument and optionally emits a newline and the Just value of the second argument if the second argument is not Nothing (a combination of the &< and &? operators).

    >>> sez @"info" $ t'"First" &<? Just (t'"something")
    "First\nsomething"
    
    >>> sez @"info" $ t'"Then" &<? (Nothing :: Maybe Text)
    "Then"
    
    @since: 1.1.0.0

  9. (&?) :: forall (tag :: Symbol) m e . (Sayable tag m, Sayable tag e) => m -> Maybe e -> Saying tag

    sayable Text.Sayable

    A helper operator allowing a Sayable item to be wrapped in a Maybe. This adds the Sayable of the first argument to the Sayable of the second argument in the Just case, or just emits the Sayable of the first argument if the second argument is Nothing.

    >>> sez @"info" $ t'"It's" &? Just (t'"something") &- t'"or" &? (Nothing :: Maybe Text)
    "It's something or"
    

  10. (&&&) :: Arrow a => a b c -> a b c' -> a b (c, c')

    synthesizer-dimensional Synthesizer.Dimensional.Causal.Process

    Fanout: send the input to both argument arrows and combine their output. The default definition may be overridden with a more efficient version if desired.

Page 18 of many | Previous | Next