Zulip Chat Archive

Stream: Is there code for X?

Topic: Find argument by unification


Aaron Liu (Jul 31 2025 at 18:35):

Sometimes I just want to find an argument by unification, instead of invoking typeclass synthesis. Is there an easy way to do this, without having to spell out the argument manually?

Adam Topaz (Jul 31 2025 at 19:03):

Can you give an example where you want to do something like this?

Aaron Liu (Jul 31 2025 at 19:06):

I don't have one right now but I can fabricate one

Robin Arnez (Jul 31 2025 at 21:54):

Usually I use (_) then (since _ causes instance synthesis)

Aaron Liu (Jul 31 2025 at 22:00):

oh does that work?

Aaron Liu (Jul 31 2025 at 22:01):

I will try it then next time I need this

Bryan Gin-ge Chen (Jul 31 2025 at 23:09):

This would be good to document somewhere since it's not obvious that there will be a difference between _ and (_)!


Last updated: Dec 20 2025 at 21:32 UTC