implicit class AnnotationsSyntax[V] extends AnyRef
Syntax for allowing annotations to be added to log tree nodes.
The best way to see how this syntax works is to take a look at the annotations example on GitHub.
Here is a short example:
import scalaz.syntax.show._ val syntax = new LogTreeSyntax[String] {} import syntax._ val result = 1 ~> "One" ~~ Set("Annotating with a string", "And another") println(result.run.value) // Will print: \/-(1) - note that the 'right' means ''success'' println(result.run.written.shows) // Will print: // One - [Annotating with a string, And another]
- Alphabetic
- By Inheritance
- AnnotationsSyntax
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AnnotationsSyntax(w: DescribedComputation[V])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
allAnnotations: Set[Annotation]
Get the union of all annotations in the log tree of the DescribedComputation.
-
def
annotateWith(annotation: Annotation): DescribedComputation[V]
Equivalent to
~~ annotation
- def annotateWith(annotations: Set[Annotation]): DescribedComputation[V]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
~~(annotation: Annotation): DescribedComputation[V]
Syntactic sugar equivalent to annotateWith(annotation)
-
def
~~(annotations: Set[Annotation]): DescribedComputation[V]
Sugar for annotateWith(annotations)
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated