kevin-lee / effectie

A Tool for FP Effect Libraries

Home Page:https://effectie.kevinly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `fromEither`, `fromOption` and `fromTry` to `FxCtor` and `Fx`

kevin-lee opened this issue · comments

Task

Summary

Add fromEither, fromOption and fromTry to FxCtor and Fx

Project Details

Version:

Description

def fromEither[A](either: Either[Throwable, A]): F[A]
def fromOption[A](option: Option[A])(orElse: => Throwable): F[A]
def fromTry[A](tryA: scala.util.Try[A]): F[A]