All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sbt.util.Monad.scala Maven / Gradle / Ivy

There is a newer version: 2.0.0-M2
Show newest version
/*
 * sbt
 * Copyright 2011 - 2018, Lightbend, Inc.
 * Copyright 2008 - 2010, Mark Harrah
 * Licensed under Apache License 2.0 (see LICENSE)
 */

package sbt.util

import scala.annotation.implicitNotFound

@implicitNotFound("Could not find an instance of Monad for ${F}")
trait Monad[F[_]] extends FlatMap[F] with Applicative[F]:
//
end Monad

object Monad:
  given Monad[Option] = OptionInstances.optionMonad
  given Monad[List] = ListInstances.listMonad
end Monad




© 2015 - 2024 Weber Informatics LLC | Privacy Policy