Skip to content

Instantly share code, notes, and snippets.

View ayoub-benali's full-sized avatar

Ayoub Benali ayoub-benali

View GitHub Profile
@ayoub-benali
ayoub-benali / ErrorFailure.scala
Created April 5, 2016 14:45 — forked from atamborrino/ErrorFailure.scala
Monad transformer for Future[A Or Every[Error]]
package models.error
import org.scalactic._
import scala.concurrent.{ExecutionContext, Future}
import org.scalactic.Accumulation._
trait Error
object FutureOr {
type Errors = Every[Error]