Manuscript Documentation
v2026.12.0

Understanding effects#

This page covers the call-graph view of how code reads and writes data. For permissions that ms check --only lint enforces, see effects and permissions .

Use the effects view when you review how code reads or changes data and reaches external operations. It follows calls, so you can see how a small helper reaches behavior outside the program.

Save this as hello.ms:

Manuscript
fn main() Void {
    print("Hello, Manuscript!")
}

ms run hello.ms prints Hello, Manuscript!. To inspect its calls without running it:

sh
ms map hello.ms --view effects --entity main
text
EFFECTS VIEW: where each function's effects come from
`- main  effects: std.console.write
   `- core.print  effects: std.console.write

The summary lists the declared effects reachable through print, not just statements written directly in main. These are the same names ms check --only lint checks against allow_effect. A function that reaches none is pure. Use the call path to find the implementation you need to review. For a larger program, open an interactive code map or use the review report to find newly introduced effects.

Transitive analysis#

Effects combine along calls: a function reaches the union of the declared effects (// ms: effect NAME) of everything it calls.

Call targetHow it contributes to the summary
Source functionInclude its effects, including the effects of its callees.
Several possible targetsInclude the union of their effects.
Standard-library function with a declared effectInclude that effect (std.fs.read, std.console.write).

Summaries describe reachable behavior. To restrict what a function may reach, use effects and permissions ; this view does not enforce anything.