def then
import cswap-bend-cli@0.1.0.0/fs.bend as Fsimport Base
47# Run `next` only when the previous step worked.
48def then(r: Res(Unit), next: IO(Res(Unit))) -> IO(Res(Unit)):
49 match r:
50 case Fail{e}:
51 IO.pure(Res(Unit), Fail{e})
52 case Done{u}:
53 next
Uses (5)
Used by (0)
No other definition uses this definition.