-
Notifications
You must be signed in to change notification settings - Fork 339
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
Constructor instances do not work outside parameterised modules #5583
Comments
Also, the issue does not appear when everything is in one file: module M₁ (_ : ⊤) where
data X : Set where
instance x : X
_ : X
_ = it
module M₂ where
open M₁ tt
_ : X
_ = it |
import File1
open File1 tt works but not |
Then probably related to #4166. |
Isn't the problem that instance search simply does not consider instances that have explicit arguments? Normally there's a warning for that but in this case it (intentionally or unintentionally) does not fire because the argument is a module parameter. |
Nevermind, I see the module is actually applied to |
Let's assume two files with the following definitions:
The instance is not available in
File2
, producing the following error:NB: If I remove the dummy parameter
_ : ⊤
it works, and it was working before v2.6.2.The text was updated successfully, but these errors were encountered: