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

Dhall.TH: Call addDependentFile for each local import #2620

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

mmhat
Copy link
Collaborator

@mmhat mmhat commented Dec 7, 2024

This PR improves recompilation checking for modules that use the Dhall.TH.staticDhallExpression function and the Dhall.TH.dhall Quasi Quoter. Specifically, we call Language.Haskell.TH.addDependentFile for each local import appearing in a Dhall expression: By doing that GHC will rebuild the module splicing in that expression if one of its local imports changes.

In order to collect the imports that where processed in the import resolution phase a new function resolveAndStatusWithSettings was added to the Dhall module. This function also returns the final import status (Dhall.Import.Status) together with the resolved expression.

Fixes #2518

mmhat and others added 3 commits December 7, 2024 08:11
@Gabriella439 Gabriella439 merged commit e9f37ae into dhall-lang:main Dec 20, 2024
9 checks passed
@mmhat mmhat deleted the 2518-th-add-dependent-file branch December 22, 2024 16:42
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.

Dhall.TH functions should call addDependentFile
2 participants