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

Don't include context in default output #1482

Merged
merged 1 commit into from
Oct 27, 2019
Merged

Don't include context in default output #1482

merged 1 commit into from
Oct 27, 2019

Conversation

Gabriella439
Copy link
Collaborator

The motivation for this is so that dhall can be made much faster on very
large projects like dhall-kubernetes-charts where vast majority of the time
is spent rendering the very large Context when type-checking fails, delaying
the user from getting to the actual error message.

The Context also gets in the way of the user noticing the (far more useful)
type diff, but the performance cost is the primary motivation for this change.

If the user wants the context they can still use the --explain flag.

The motivation for this is so that `dhall` can be made much faster on very
large projects like `dhall-kubernetes-charts` where vast majority of the time
is spent rendering the very large `Context` when type-checking fails, delaying
the user from getting to the actual error message.

The `Context` also gets in the way of the user noticing the (far more useful)
type diff, but the performance cost is the primary motivation for this change.

If the user wants the context they can still use the `--explain` flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants