diff --git a/alleycats-core/src/main/scala/alleycats/std/all.scala b/alleycats-core/src/main/scala/alleycats/std/all.scala index e7eb304881..9905da41e2 100644 --- a/alleycats-core/src/main/scala/alleycats/std/all.scala +++ b/alleycats-core/src/main/scala/alleycats/std/all.scala @@ -9,5 +9,6 @@ import export._ OptionInstances, SetInstances, TryInstances, - IterableInstances + IterableInstances, + FutureInstances ) object all extends LegacySetInstances with LegacyTryInstances with LegacyIterableInstances with MapInstances diff --git a/alleycats-core/src/main/scala/alleycats/std/future.scala b/alleycats-core/src/main/scala/alleycats/std/future.scala new file mode 100644 index 0000000000..1c314935fd --- /dev/null +++ b/alleycats-core/src/main/scala/alleycats/std/future.scala @@ -0,0 +1,17 @@ +package alleycats +package std + +import export._ + +import scala.concurrent.Future + +@reexports(FutureInstances) +object future + +object FutureInstances { + @export(Orphan) + implicit val exportFuturePure: Pure[Future] = + new Pure[Future] { + override def pure[A](a: A): Future[A] = Future.successful(a) + } +}