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

Getting best mileage with `typeWith`? #83

Closed
aleator opened this Issue Jul 3, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@aleator
Contributor

aleator commented Jul 3, 2017

I'm playing with Dhall (probably in ways it wasn't supposed to be used) and I'm having troubles with the typeWith function. What I would want is to have few opaque type name that can be referred to in my config. For most part this works fine, except that load does typechecking. This means that I cannot refer to my opaque types in anything that has been imported.

The above is probably by design, but it certainly makes typeWith less useful for the end user. Would a patch that enables passing type context into load be acceptable?

@Gabriel439

This comment has been minimized.

Show comment
Hide comment
@Gabriel439

Gabriel439 Jul 3, 2017

Collaborator

Yes, I agree that this is worth supporting

Collaborator

Gabriel439 commented Jul 3, 2017

Yes, I agree that this is worth supporting

Gabriel439 added a commit that referenced this issue Jul 5, 2017

Added a `loadWith` function. (#84)
This allows loading dhall 'modules' using a custom typing
context. See #83
@Gabriel439

This comment has been minimized.

Show comment
Hide comment
@Gabriel439

Gabriel439 Jul 5, 2017

Collaborator

Closing, as I think this is fixed by #84

Collaborator

Gabriel439 commented Jul 5, 2017

Closing, as I think this is fixed by #84

@Gabriel439 Gabriel439 closed this Jul 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment