IO

public class IO<E, A> : IOOf<E, A> where E : Error

Undocumented

  • Undocumented

    Declaration

    Swift

    public static func fix(_ fa: IOOf<E, A>) -> IO<E, A>
  • Undocumented

    Declaration

    Swift

    public static func invoke(_ f: @escaping () throws -> A) -> IO<E, A>
  • Undocumented

    Declaration

    Swift

    public static func merge<B>(_ fa : @escaping () throws -> A,
                                _ fb : @escaping () throws -> B) -> IO<E, (A, B)>
  • Undocumented

    Declaration

    Swift

    public static func merge<B, C>(_ fa : @escaping () throws -> A,
                                   _ fb : @escaping () throws -> B,
                                   _ fc : @escaping () throws -> C) -> IO<E, (A, B, C)>
  • Undocumented

    Declaration

    Swift

    public static func merge<B, C, D>(_ fa : @escaping () throws -> A,
                                      _ fb : @escaping () throws -> B,
                                      _ fc : @escaping () throws -> C,
                                      _ fd : @escaping () throws -> D) -> IO<E, (A, B, C, D)>
  • Undocumented

    Declaration

    Swift

    public static func merge<B, C, D, F>(_ fa : @escaping () throws -> A,
                                         _ fb : @escaping () throws -> B,
                                         _ fc : @escaping () throws -> C,
                                         _ fd : @escaping () throws -> D,
                                         _ ff : @escaping () throws -> F) -> IO<E, (A, B, C, D, F)>
  • Undocumented

    Declaration

    Swift

    public static func merge<B, C, D, F, G>(_ fa : @escaping () throws -> A,
                                            _ fb : @escaping () throws -> B,
                                            _ fc : @escaping () throws -> C,
                                            _ fd : @escaping () throws -> D,
                                            _ ff : @escaping () throws -> F,
                                            _ fg : @escaping () throws -> G) -> IO<E, (A, B, C, D, F, G)>
  • Undocumented

    Declaration

    Swift

    public static func merge<B, C, D, F, G, H>(_ fa : @escaping () throws -> A,
                                               _ fb : @escaping () throws -> B,
                                               _ fc : @escaping () throws -> C,
                                               _ fd : @escaping () throws -> D,
                                               _ ff : @escaping () throws -> F,
                                               _ fg : @escaping () throws -> G,
                                               _ fh : @escaping () throws -> H ) -> IO<E, (A, B, C, D, F, G, H)>
  • Undocumented

    Declaration

    Swift

    public static func merge<B, C, D, F, G, H, I>(_ fa : @escaping () throws -> A,
                                                  _ fb : @escaping () throws -> B,
                                                  _ fc : @escaping () throws -> C,
                                                  _ fd : @escaping () throws -> D,
                                                  _ ff : @escaping () throws -> F,
                                                  _ fg : @escaping () throws -> G,
                                                  _ fh : @escaping () throws -> H,
                                                  _ fi : @escaping () throws -> I) -> IO<E, (A, B, C, D, F, G, H, I)>
  • Undocumented

    Declaration

    Swift

    public static func merge<B, C, D, F, G, H, I, J>(_ fa : @escaping () throws -> A,
                                                     _ fb : @escaping () throws -> B,
                                                     _ fc : @escaping () throws -> C,
                                                     _ fd : @escaping () throws -> D,
                                                     _ ff : @escaping () throws -> F,
                                                     _ fg : @escaping () throws -> G,
                                                     _ fh : @escaping () throws -> H,
                                                     _ fi : @escaping () throws -> I,
                                                     _ fj : @escaping () throws -> J ) -> IO<E, (A, B, C, D, F, G, H, I, J)>
  • Undocumented

    Declaration

    Swift

    public func unsafePerformIO() throws -> A
  • Undocumented

    Declaration

    Swift

    public func attempt() -> IO<E, A>
  • Undocumented

    Declaration

    Swift

    public func unsafeRunAsync(_ callback: Callback<E, A>)
  • Undocumented

    Declaration

    Swift

    public func mapLeft<EE>(_ f: @escaping (E) -> EE) -> IO<EE, A>