ForSingleK

public final class ForSingleK

Undocumented

  • Declaration

    Swift

    public static func map<A, B>(_ fa: Kind<ForSingleK, A>, _ f: @escaping (A) -> B) -> Kind<ForSingleK, B>
  • Declaration

    Swift

    public static func pure<A>(_ a: A) -> Kind<ForSingleK, A>
  • Declaration

    Swift

    public static func flatMap<A, B>(_ fa: Kind<ForSingleK, A>, _ f: @escaping (A) -> Kind<ForSingleK, B>) -> Kind<ForSingleK, B>
  • Declaration

    Swift

    public static func tailRecM<A, B>(_ a: A, _ f: @escaping (A) -> Kind<ForSingleK, Either<A, B>>) -> Kind<ForSingleK, B>
  • Declaration

    Swift

    public typealias E = Error
  • Declaration

    Swift

    public static func raiseError<A>(_ e: Error) -> Kind<ForSingleK, A>
  • Declaration

    Swift

    public static func handleErrorWith<A>(_ fa: Kind<ForSingleK, A>, _ f: @escaping (Error) -> Kind<ForSingleK, A>) -> Kind<ForSingleK, A>
  • Undocumented

    Declaration

    Swift

    public static func suspend<A>(_ fa: @escaping () -> Kind<ForSingleK, A>) -> Kind<ForSingleK, A>
  • Undocumented

    Declaration

    Swift

    public static func runAsync<A>(_ fa: @escaping ((Either<Error, A>) -> ()) throws -> ()) -> Kind<ForSingleK, A>
  • Undocumented

    Declaration

    Swift

    public static func runAsync<A>(_ fa: Kind<ForSingleK, A>, _ callback: @escaping (Either<Error, A>) -> Kind<ForSingleK, ()>) -> Kind<ForSingleK, ()>