mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-04 21:57:25 +03:00
11 lines
270 B
Plaintext
11 lines
270 B
Plaintext
--IO3 effect
|
|
effect IO where
|
|
launch-missiles : () -> {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.launch-missiles()
|
|
()
|
|
|