mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-04 13:47:26 +03:00
11 lines
279 B
Plaintext
11 lines
279 B
Plaintext
--IO3 ability
|
|
structural ability IO where
|
|
launchMissiles : () -> {IO} ()
|
|
-- binding IS guarded, so its body can access whatever abilities
|
|
-- are declared by the type of the binding
|
|
-- ambient abilities (which will be empty)
|
|
ex1 : () -> {IO} ()
|
|
ex1 unit = IO.launchMissiles()
|
|
|
|
|