-
Notifications
You must be signed in to change notification settings - Fork 37
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
Disappearing qualified import #219
Comments
Don't know if this is intended behavior, but the current test case for qualified import does expect the qualification to disappear: agda2hs/test/QualifiedImports.agda Lines 7 to 15 in 15314cd
agda2hs/test/golden/QualifiedImports.hs Lines 3 to 12 in 15314cd
Edit: introduced in #202 , before that things were qualified properly. |
Maybe worth looking at the "clashing-imports check": https://github.com/agda/agda2hs/blob/master/test/Fail/ClashingImport.agda#L1-L12 (generally, the whole feature got introduced in PR #136) This bug might suggest two possible solutions:
|
Gonna investigate. Personally I find your 2nd solution to be the most sensible choice. |
I agree with solution 2. A non-opened import really should be translated to a qualified import in Haskell. |
Minimal example of a bug I encountered with qualified imports.
A.agda
:B.agda
:Compiling file
B.agda
yields:A
is not imported qualified somehow.The text was updated successfully, but these errors were encountered: