From 557db70b798d81512ac50b4ff0a0db62a3cec5d4 Mon Sep 17 00:00:00 2001 From: John Sullivan Date: Wed, 1 Mar 2017 10:30:20 -0600 Subject: [PATCH] fix scaladoc for Eval methods Unit, True, False, Zero, One --- core/src/main/scala/cats/Eval.scala | 32 +++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/core/src/main/scala/cats/Eval.scala b/core/src/main/scala/cats/Eval.scala index e97ae3cbaf..069243597a 100644 --- a/core/src/main/scala/cats/Eval.scala +++ b/core/src/main/scala/cats/Eval.scala @@ -206,15 +206,43 @@ object Eval extends EvalInstances { new Eval.Call[A](a _) {} /** - * Static Eval instances for some common values. + * Static Eval instance for common value `Unit`. * - * These can be useful in cases where the same values may be needed + * This can be useful in cases where the same value may be needed * many times. */ val Unit: Eval[Unit] = Now(()) + + /** + * Static Eval instance for common value `true`. + * + * This can be useful in cases where the same value may be needed + * many times. + */ val True: Eval[Boolean] = Now(true) + + /** + * Static Eval instance for common value `false`. + * + * This can be useful in cases where the same value may be needed + * many times. + */ val False: Eval[Boolean] = Now(false) + + /** + * Static Eval instance for common value `0`. + * + * This can be useful in cases where the same value may be needed + * many times. + */ val Zero: Eval[Int] = Now(0) + + /** + * Static Eval instance for common value `1`. + * + * This can be useful in cases where the same value may be needed + * many times. + */ val One: Eval[Int] = Now(1) /**