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

Instance parameters should not be turned into hidden parameters in record modules #1847

Closed
UlfNorell opened this issue Feb 16, 2016 · 0 comments
Labels
instance Instance resolution regression on master Unreleased regression in development version (Change to "regression in ..." should it be released!) type: bug Issues and pull requests about actual bugs
Milestone

Comments

@UlfNorell
Copy link
Member

record Additive {ℓ} (A : Set ℓ) : Setwhere
  field
    zero : A
    _+_ : A  A  A

open Additive {{...}} public

record Subtractive {ℓ} (A : Set ℓ) {{ADD : Additive A}} : Setwhere
  field
    _-_ : A  A  A

  neg : A  A
  neg x = zero - x  -- no instance Additive A found

open Subtractive {{...}} public
@UlfNorell UlfNorell added this to the 2.5.1 milestone Feb 16, 2016
@UlfNorell UlfNorell added type: bug Issues and pull requests about actual bugs regression on master Unreleased regression in development version (Change to "regression in ..." should it be released!) instance Instance resolution labels Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
instance Instance resolution regression on master Unreleased regression in development version (Change to "regression in ..." should it be released!) type: bug Issues and pull requests about actual bugs
Projects
None yet
Development

No branches or pull requests

1 participant