-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pointed
: Setoid
with a distinguished point
#1957
Comments
I picture
|
Disentangling the existing design to separate out the various use cases seems like: UPDATED: now we are at such a point, what is the best way to proceed? Suggestions @JacquesCarette ? |
I still see it as something that belongs in |
I'm going to close this for now:
I'll re-open as and when we make progress on the second? Hopefully the first will follow (more) straightforwardly after that? |
This concept doesn't exist in the library (for
Set
,Data.Maybe
does the trick of course), so we should add it.But where should it belong? A
Setoid
-with-a-point: is it anAlgebra
(with a very boring signature, consisting of a single nullary operation), or a special kind ofSetoid
, and hence should live with those things underRelation.Binary
?(this may be a separate library design pain point regarding
Setoid
: is that anAlgebra
too, albeit one with no operations?)UPDATED: grrr.
Pointed
introduced in two ways already. Once to add a distinguished point; this apparently lives underRelation.Nullary.Construct.Add.Point
whereand once to add a distinguished point which is moreover an identity for a binary operation. And overloading the shared common use of
Maybe
as the representingFree
functor. This seems a bit wart-y how to proceed?Either way, we might then want a
Free
such thing, (cf. #1962 / #1954 ) and know that its algebra is that of the usual adjoint/monadic situation arising fromMaybe
and the forgetful operation of throwing away the distinguished point.The text was updated successfully, but these errors were encountered: