The next step is Idris, where you define starting and desired type and start interactive shell to figure out right way to get there.