New Lint check: no alternatives implies bottoming expression
authorJoachim Breitner <mail@joachim-breitner.de>
Sun, 22 Mar 2015 16:32:26 +0000 (17:32 +0100)
committerJoachim Breitner <mail@joachim-breitner.de>
Mon, 23 Mar 2015 19:33:35 +0000 (20:33 +0100)
commita0678f1f0e62496c108491e1c80d5eef3936474a
tree092d43fe3c3a03ff9fe5093cddbf8195621dd679
parent5673bfc49ec1e54a1540197078041a9da9754fa3
New Lint check: no alternatives implies bottoming expression

detected either by exprIsBottom or by an empty type.

This was suggested by SPJ and fixes #10180.
compiler/coreSyn/CoreLint.hs
compiler/coreSyn/CoreUtils.hs