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

Change ? to only fall back on absent imports #1181

Merged
merged 7 commits into from
Jun 8, 2021

Conversation

Gabriella439
Copy link
Contributor

Fixes #1113

This changes the behavior of the ? operator to only fall back to
the second import if it cannot be retrieved (either from the
cache or the specified location). In particular, it will not
recover from type errors, parse errors, cyclic imports, or hash
mismatches.

Fixes #1113

This changes the behavior of the `?` operator to only fall back to
the second import if it cannot be retrieved (either from the
cache or the specified location).  In particular, it will not
recover from type errors, parse errors, cyclic imports, or hash
mismatches.
@Gabriella439
Copy link
Contributor Author

Matching change to the Haskell implementation: dhall-lang/dhall-haskell#2203

Copy link
Collaborator

@TristanCacqueray TristanCacqueray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, the previous behavior was a bit unexpected and difficult to work with when working on e₀

standard/imports.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@sjakobi sjakobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really good improvement! :)

standard/imports.md Outdated Show resolved Hide resolved
standard/imports.md Outdated Show resolved Hide resolved
standard/imports.md Outdated Show resolved Hide resolved
Gabriella439 and others added 5 commits June 1, 2021 11:22
… as suggested by @sjakobi

Co-authored-by: Simon Jakobi <simon.jakobi@gmail.com>
…g/dhall-lang into gabriel/don't_always_fall_back
… as suggested by @sjakobi

Co-authored-by: Simon Jakobi <simon.jakobi@gmail.com>
…g/dhall-lang into gabriel/don't_always_fall_back
In particular, clarify what happens if `e₀` successfully resolves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import resolution independent of type checking
4 participants