ForMaybeK

public final class ForMaybeK

Undocumented

  • Declaration

    Swift

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

    Swift

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

    Swift

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

    Swift

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

    Swift

    public typealias E = Error
  • Declaration

    Swift

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

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public static func runAsync<A>(_ fa: Kind<ForMaybeK, A>, _ callback: @escaping (Either<ForMaybeK.E, A>) -> Kind<ForMaybeK, ()>) -> Kind<ForMaybeK, ()>