Skip to content

Conversation

@mmhat
Copy link
Collaborator

@mmhat mmhat commented Oct 25, 2023

This PR allows some of the new entrypoints (parseWithSettings, typecheckWithSettings and expectWithSettings) to run in pure code by replacing the IO with a more general monad m that is constrained by MonadThrow.

I also added a new entrypoint checkWithSettings: It is similar to expectWithSettings but does not require a whole Decoder but takes the expected type as expression instead.

@mmhat mmhat requested a review from Gabriella439 October 25, 2023 12:31
@Gabriella439 Gabriella439 merged commit 251cfe7 into dhall-lang:main Oct 25, 2023
@Gabriella439
Copy link
Collaborator

Thank you for doing this!

@mmhat mmhat deleted the polymorphic-entrypoints branch October 25, 2023 15:26
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