WriterTPartial

public final class WriterTPartial<F, W> : Kind2<ForWriterT, F, W>

Partial application of the WriterT type constructor, omitting the last parameter.

  • Lifts an effect using empty value of the Monoid.

    Declaration

    Swift

    public static func liftF<A>(_ fb: Kind<F, A>) -> WriterTOf<F, W, A>

    Parameters

    fb

    Effect to be lifted.

    Return Value

    A WriterT wrapping the value contained in the effect parameter and using the empty accumulator.

  • Declaration

    Swift

    public static func hash<A>(_ fa: WriterTOf<F, W, A>, into hasher: inout Hasher) where A : Hashable
  • Declaration

    Swift

    public typealias S = F.S
  • Declaration

    Swift

    public static func get() -> WriterTOf<F, W, F.S>
  • Declaration

    Swift

    public static func set(_ s: F.S) -> WriterTOf<F, W, Void>