Skip to content

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

2 participants