Typed functional-style tactics for Agda