ApplicativeError

public protocol ApplicativeError : Applicative

Undocumented

  • E

    Undocumented

    Declaration

    Swift

    associatedtype E
  • Undocumented

    Declaration

    Swift

    static func raiseError<A>(_ e: E) -> Kind<Self, A>
  • Undocumented

    Declaration

    Swift

    static func handleErrorWith<A>(_ fa: Kind<Self, A>, _ f: @escaping (E) -> Kind<Self, A>) -> Kind<Self, A>
  • handleError(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func handleError<A>(_ fa: Kind<Self, A>, _ f: @escaping (E) -> A) -> Kind<Self, A>
  • attempt(_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func attempt<A>(_ fa: Kind<Self, A>) -> Kind<Self, Either<E, A>>
  • fromEither(_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func fromEither<A>(_ fea: Either<E, A>) -> Kind<Self, A>
  • catchError(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func catchError<A>(_ f: () throws -> A, _ recover: (Error) -> E) -> Kind<Self, A>
  • catchError(_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func catchError<A>(_ f: () throws -> A) -> Kind<Self, A>