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

10 lines
219 B
Plaintext
Raw Normal View History

--IO ability
2021-08-24 21:33:27 +03:00
structural ability IO where
2019-02-21 22:49:12 +03:00
launchMissiles : () -> {IO} ()
-- binding is not guarded by a lambda, it only can access
-- ambient abilities (which will be empty)
ex1 : {IO} ()
2019-02-21 22:49:12 +03:00
ex1 = IO.launchMissiles()
()