According to this old answer, Idris 1 has the using syntax to select default implementations for a block of code. What is the corresponding Idris 2 syntax?
I've tried using the syntax from the answer:
using implementation Any
tick1 : Time -> Writer Bool Time
tick1 t = pure t
but this one doesn't even parse:
`-- src/HL2/Clock.idr line 14 col 0:
Expected end of input.
HL2.Clock:14:1--14:6
14 | using implementation Any
^^^^^
@{name}syntax allows custom implementations to be passed to functions.This prints
[5, 4, 3, 2, 1]