PSA: the syntax for defining effects in platforms has changed on trunk
!
now they're in a separate hosted
module - for example, here's the CLI example:
where effects used to be defined
Nice! Very clean. Does this enable anything new? (spreading effect definitions across multiple files?)
yes! It means it's now possible to have type aliases in other interface
modules and use them both in effects definitions as well as in the platform's public API
this is particularly nice with error types that get used in Task
s, and it was previously impossible because trying to do it would require a cyclic import
Last updated: Jul 06 2025 at 12:14 UTC