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

sbt.util.Apply.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

trait Apply[F[_]] extends Functor[F]:
  def ap[A1, A2](ff: F[A1 => A2])(fa: F[A1]): F[A2]
end Apply

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy