syntax
com.softinio.verdict4s.syntax
object syntax
Optional sugar for the call site.
The documented form is client.ask(questions, state), which needs nothing in implicit scope and infers F from the client. This import adds a reading-order alternative for those who prefer it:
import com.softinio.verdict4s.syntax.*
given Verdict4sClient[IO] = client
val (urgent, dept) = Ask(q1, q2).run("payouts failing")
run needs the client as a given for F to be inferable, which is an unusual idiom; runWith is the same thing with the client passed explicitly.
Attributes
- Graph
-
- Supertypes
- Self type
-
syntax.type
Members list
In this article