HandlersModule
libretto.lambda.EnumModule.HandlersModule
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Type members
Types
Value members
Abstract methods
def snoc[Init, Lbl <: String, Z, R](init: Handlers[Init, R], label: SingletonType[Lbl], last: Z -> R): Handlers[Init || (Lbl :: Z), R]
Concrete methods
Extensions
Extensions
extension [Cases, Init, ZLbl <: String, Z, R](b: Builder[Cases, Init || (ZLbl :: Z), R])
extension [Cases, Lbl <: String, A, R](b: Builder[Cases, Lbl :: A, R])
extension [Init, ZLbl <: String, Z](b: InitialBuilder[Init || (ZLbl :: Z)])
def caseOf[Lbl](using SingletonType[Lbl], Lbl =:= ZLbl): [R] => (Z -> R) => Builder[Init || (ZLbl :: Z), Init, R]
extension [Lbl <: String, A](b: InitialBuilder[Lbl :: A])
def caseOf[L](using SingletonType[L], L =:= Lbl, DummyImplicit): [R] => (A -> R) => Handlers[Lbl :: A, R]
In this article