I'm reading ITrees
. What does -<
mean?
Context {E : Type -> Type}.
Context {HasReg : Reg -< E}.
Context {HasMemory : Memory -< E}.
Context {HasExit : Exit -< E}.
It's a type class Reg -< E
that unfolds to a function forall T, Reg T -> E T
You can think of E
as a "set of effects" and those instances mean that it contains Reg
, Memory
and Exit
effects.
ok, thanks
Last updated: Oct 12 2024 at 12:01 UTC