Skip to content
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

Detection/prevention of orphan instances #25

Open
lexi-lambda opened this issue May 25, 2017 · 0 comments
Open

Detection/prevention of orphan instances #25

lexi-lambda opened this issue May 25, 2017 · 0 comments
Labels
Milestone

Comments

@lexi-lambda
Copy link
Owner

I am okay with permitting orphan instances. However, I think they should be an error by default, so users will have to explicitly opt-in to them. The methods outlined in this blog post are probably relevant to this.

Declaring an orphan instance can probably be done via keyword in an instance declaration, like this:

(instance #:orphan (Foo Bar) ...)

It should be an error to use #:orphan when the instance isn’t actually an orphan instance to avoid redundant #:orphan annotations. If this ever becomes a problem, we can probably weaken it to a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant