unison/unison-src/tests/state1a.u

11 lines
217 B
Plaintext

--State1a effect
effect State se2 where
put : ∀ se . se -> {State se} ()
get : ∀ se . {State se} se
id : Int64 -> Int64
id i = i
foo : () -> {State Int64} Int64
foo unit = id (State.get Int64.+ State.get)
()