Visitar URL original
Don't include context in default output by Gabriella439 · Pull Request #1482 · dhall-lang/dhall-haskell · GitHub
Skip to content

Don't include context in default output - #1482

Merged
mergify[bot] merged 1 commit into
masterfrom
gabriel/no_context
Oct 27, 2019
Merged

mergify[bot] merged 1 commit into
masterfrom
gabriel/no_context

Conversation

@Gabriella439

Copy link
Copy Markdown
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.

2 participants