Conceptual diagram showing a plan as value positioned between decision and execution in code

Plan as Value: The Pattern That Separates Deciding from Doing

The plan as value pattern separates the logic that decides what to do from the logic that executes it, turning the first into a pure, easily testable function. It makes near-free dry-run support, structured logging, and idempotency possible without littering the code with conditionals. Jack Kelly applied it to refactor the code generator behind amazonka, the unofficial Haskell SDK for AWS.