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

Fix Natural/fold for GHCJS bindings #985

Merged
merged 3 commits into from
Jun 6, 2019
Merged

Conversation

Gabriella439
Copy link
Collaborator

Fixes dhall-lang/dhall-lang#579

Natural/fold was misbehaving on GHCJS due to the use of Natural
arithmetic (for some reason). This is a problem I've seen and fixed
before, but needed to be fixed again after the migration to the new
Dhall.Eval normalization engine.

The fix is easy: use Integer instead of Natural for the accumulator
of the fold and the bug disappears.

Fixes dhall-lang/dhall-lang#579

`Natural/fold` was misbehaving on GHCJS due to the use of `Natural`
arithmetic (for some reason).  This is a problem I've seen and fixed
before, but needed to be fixed again after the migration to the new
`Dhall.Eval` normalization engine.

The fix is easy: use `Integer` instead of `Natural` for the accumulator
of the fold and the bug disappears.
@Gabriella439 Gabriella439 merged commit bb490a7 into master Jun 6, 2019
@Gabriella439 Gabriella439 deleted the gabriel/fix_ghcjs branch June 6, 2019 01:48
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.org imports demo broken
1 participant