If you run `dhall --explain` to explain a type error from a list with mismatched elements, the index of the offending term was wrong. For a minimal example, you can run: dhall --explain <<<'[0, True]' The problem is that `i` is an index into the tail of the list, not into the whole list. The fix is just to add one to it to correct for the missing head. |
||
---|---|---|
.. | ||
Dhall | ||
Dhall.hs |