Zulip Chat Archive
Stream: general
Topic: How do I access unnamed instances?
nrs (Nov 01 2024 at 03:17):
I'd like to grab a CoreM
inhabitant and I saw that it has an Inhabited
instance, but it's not named. How can I access unnamed instances?
Kyle Miller (Nov 01 2024 at 03:22):
docs#inferInstance is a basic tool for this
nrs (Nov 01 2024 at 03:22):
Kyle Miller said:
docs#inferInstance is a basic tool for this
Thanks a lot for the reference!
Kyle Miller (Nov 01 2024 at 03:22):
But also, it's worth checking what you're trying to do with the instance
nrs (Nov 01 2024 at 03:23):
hm yeah default inhabitants aren't usually very interesting (in the Inhabited instance case)
Kyle Miller (Nov 01 2024 at 03:24):
There's also docs#Inhabited.default for Inhabited
in particular. It's exported, so you can refer to it with just default
.
Kyle Miller (Nov 01 2024 at 03:25):
example : Nat := default
nrs (Nov 01 2024 at 03:26):
Kyle Miller said:
There's also docs#Inhabited.default for
Inhabited
in particular. It's exported, so you can refer to it with justdefault
.
Ah neat! thank you very much!!
Last updated: May 02 2025 at 03:31 UTC