Add a warning for empty enumerations; fixes #7881
authorIan Lynagh <ian@well-typed.com>
Thu, 1 Aug 2013 17:08:23 +0000 (18:08 +0100)
committerIan Lynagh <ian@well-typed.com>
Thu, 1 Aug 2013 17:08:23 +0000 (18:08 +0100)
commitabb3a9faa88fad3562ac41a148dd683765f47565
tree4f0b8f374f1ceb339c75489702330916b9de6a0a
parent02b7c1c84ebd3dbe9a27ec43d48b036f695a8989
Add a warning for empty enumerations; fixes #7881

We now give a warning about enumerations like [5 .. 3] :: Int8.
compiler/deSugar/DsExpr.lhs
compiler/main/DynFlags.hs
docs/users_guide/using.xml