dhall-haskell/dhall/tests/Dhall/Test
Gabriel Gonzalez f24f665047
Fix non-exhaustive pattern match in dhall lint (#780)
`dhall lint` would fail on the following expression:

```
    let replicate = https://prelude.dhall-lang.org/List/replicate

in  let Config = { name : Text, age : Natural }

in  let Configs = List Config

in  replicate 10 Text "!"
```

... because the code (incorrectly) assumed that simplifying an inner
`let` binding would preserve at least one `let` binding.  However, when the
outer `let` (beginning with `let replicate`) is simplified the inner `let`
(beginning with `let Config`) simplifies down to just `replicate 10 Text "!"`
which has no `let` binding at all, leading to a pattern match failure.

This change fixes that by extending the code to correctly handle that case
with an exhaustive pattern match.
2019-01-16 21:59:11 -08:00
..
Format.hs Refactor test suite (#733) 2018-12-03 09:17:53 -08:00
Import.hs Refactor test suite (#733) 2018-12-03 09:17:53 -08:00
Lint.hs Fix non-exhaustive pattern match in dhall lint (#780) 2019-01-16 21:59:11 -08:00
Main.hs Fix test errors in windows caused by encoding (#782) 2019-01-16 19:15:57 -08:00
Normalization.hs Implement standardized support for multi-line literals (#726) 2018-12-08 08:49:08 -08:00
Parser.hs Update binary encoding/decoding for imports (#728) 2018-12-08 10:25:07 -08:00
QuickCheck.hs Fix diff so that an empty list is equal to itself (#740) 2018-12-07 09:07:47 -08:00
Regression.hs Implement standardized support for multi-line literals (#726) 2018-12-08 08:49:08 -08:00
Tutorial.hs Implement standardized support for multi-line literals (#726) 2018-12-08 08:49:08 -08:00
TypeCheck.hs Fix type-checking bug for unions (#763) 2018-12-22 08:39:26 -06:00
Util.hs Refactor test suite (#733) 2018-12-03 09:17:53 -08:00