WithStack

terminus.effect.WithStack
trait WithStack[+F <: Writer]

Utility trait for working with Stack.

Attributes

Source
WithStack.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Color[F]
trait Terminal
trait Format[F]
Show all
Self type
F

Members list

Value members

Concrete methods

protected def withStack[A](stack: Stack, code: String)(f: F ?=> A): A

Use withStack to ensure a stack is pushed on before f is evaluated, and popped when f finishes.

Use withStack to ensure a stack is pushed on before f is evaluated, and popped when f finishes.

Attributes

Source
WithStack.scala