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

Cache imports that contain imports. #388

Merged
merged 3 commits into from
May 16, 2018

Conversation

sellout
Copy link
Collaborator

@sellout sellout commented May 15, 2018

Relevant to #362.

Previously, if an import contained additional imports, it wouldn’t get
cached. This fixes that, with a couple related changes:

  • type checking happens in the failed-lookup branch, rather than having to
    return a cached boolean,
  • the normalized form of the import is used more consistently (although this
    doesn’t fix the related normalization problem around ../).

Relevant to dhall-lang#362.

Previously, if an import contained additional imports, it wouldn’t get
cached. This fixes that, with a couple related changes:
- type checking happens in the failed-lookup branch, rather than having to
return a `cached` boolean,
- the normalized form of the import is used more consistently (although this
doesn’t fix the related normalization problem around `../`)
@sellout
Copy link
Collaborator Author

sellout commented May 15, 2018

BTW, my branch is a few commits behind master, because I didn’t want to modify all my configs with the Integer/Natural change just to experiment with this.

@Gabriella439
Copy link
Collaborator

Looks great to me!

@Gabriella439 Gabriella439 merged commit 5da4544 into dhall-lang:master May 16, 2018
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.

2 participants