unison/unison-src/errors/io-effect.u

10 lines
208 B
Plaintext

--IO ability
ability IO where
launchMissiles : () -> {IO} ()
-- binding is not guarded by a lambda, it only can access
-- ambient abilities (which will be empty)
ex1 : {IO} ()
ex1 = IO.launchMissiles()
()