And then something like this maybe:
{
add-int-magma : Magma.{A = Int} = {
op = [x, y] => x + y,
},
test-add-int : Int = add-int-magma.op.[1, 3],
}
Conversation
This:
add-int-magma.op.[1, 3]
would elaborate to:
add-int-magma.op.{0 = 1, 1 = 3}.default
2
1
You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
I think I remember the Unison folks thinking about doing something similar with their 'abilities'?
1
2
Dunno where in this conversation this is relevant, but there was also this interesting blog post: blog.ezyang.com/2020/08/dynami
Following the Granule stuff with interest - coeffects seem really cool!
You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
Me too! Also how they relate to Pi and Sigma… it's a bit mysterious to me!
1

