LearnEffects and runtime

Effects and runtime

Use effects, handlers, runtime modules, and foundation modules.

Some work reaches outside a pure value. A program may ask the clock, read config, print text, or call a host function. Musi keeps this kind of work visible.

An effect names work that needs an answer from outside the current expression. ask performs that work. answer, handle, and resume describe what happens next.

This part teaches effects, requirements, handlers, runtime modules, and library modules. The page examples show where outside work enters the code.

Use this part when your program must talk to the world.