You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ability Counter where
next : {Counter} Nat
Counter.impl value request =
match request with
{ result } -> result
{ next -> resume } ->
handle resume value with Counter.impl (value + 1)
countFrom n f = do
handle !f with Counter.impl n
Gets formatted into:
ability Counter where next : {Counter} Nat
Counter.impl value = cases
{ result } -> result
{ next -> resume } -> handle resume value with Counter.impl (value Nat.+ 1) with Counter.impl (value + 1)
countFrom n f = do handle !f with impl n with Counter.impl n
And ucm error is:
Loading changes detected in ~/dev/scratch.u.
I found a closing 'with' here without a matching 'handle' or 'match'.
5 | { next -> resume } -> handle resume value with Counter.impl (value Nat.+ 1) with Counter.impl (value + 1)
The text was updated successfully, but these errors were encountered:
Quick example to reproduce it:
Gets formatted into:
And
ucm
error is:The text was updated successfully, but these errors were encountered: