-
Notifications
You must be signed in to change notification settings - Fork 338
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
.#modulename-number in goals of open imported parameterised modules #1278
Comments
My bad. I just hacked the parser (Parser.y) to get the sugar
; unique = hashString $ show $ (Nothing :: Maybe ()) <$ r
-- turn range into unique id, but delete file path
-- which is absolute and messes up suite of failing tests
-- (different hashs on different installations)
-- TODO: Don't use (insecure) hashes in this way.
; fresh = Name mr [ Id $ stringToRawName $ ".#" ++ show m ++ "-" ++ show unique ] Maybe not too difficult to fix? Original comment by
|
See issue #481 for the initial feature request Original comment by
|
Are you sure? I removed 'unique' from Parser.y and I defined 'Fresh' as it was defined before the commit c370b16 (see the issue-1278 branch). I was expecting an error on open import A Set but it type-checked without problems. Original comment by
|
I think the problem is not about whether it type checks, but how names are printed. Note that the freshness magic is to ensure that you can write two "open import" statements for the same module without getting an error about duplicate module identifier A and without confusing the two instantiations of the same module, e.g. open import A Set using ()
open import A Set Issue #896 seems also related but not quite. Note that with open import A Set A is not in scope, so the expected goal would be .A.d == .A.d Original comment by |
Original comment by
|
Andres, are you planning to take this issue? (Maybe you should set the Owner then.) Original comment by |
I don't dare to answer affirmatively :-) Original comment by |
I just want to avoid a race to fix this bug. ;-) You can give back ownership. Original comment by |
... at any time, if you choose to. Original comment by |
Please, be my guest :-) Original comment by |
Original comment by
|
@andreasabel, the goal in upstream is ?0 : d ≡ d isn't it the expected behaviour? |
That looks fine. I guess we can add the test case and close this issue. |
I'll do it. |
I see strange printing of internal names when I open import a parameterised module in a different file, using the latest git version of Agda. To reproduce, create the following files:
If I change "open import A Set" into
then the printing problem disappears. It also does not occur if A is not parameterised.
Original issue reported on code.google.com by
fredrik....@gmail.com
on 8 Sep 2014 at 9:20The text was updated successfully, but these errors were encountered: