f24f665047
`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. |
||
---|---|---|
.. | ||
Format.hs | ||
Import.hs | ||
Lint.hs | ||
Main.hs | ||
Normalization.hs | ||
Parser.hs | ||
QuickCheck.hs | ||
Regression.hs | ||
Tutorial.hs | ||
TypeCheck.hs | ||
Util.hs |