IOPartial

public final class IOPartial<E> : Kind<ForIO, E> where E : Error

Undocumented

  • Declaration

    Swift

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

    Swift

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

    Swift

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

    Swift

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

    Swift

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

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public static func runAsync<A>(_ fa: @escaping ((Either<E, A>) -> ()) throws -> ()) -> Kind<IOPartial<E>, A>
  • Declaration

    Swift

    public static func eq<A>(_ lhs: Kind<IOPartial<E>, A>, _ rhs: Kind<IOPartial<E>, A>) -> Bool where A : Equatable