Don't treat datacon id's as local variables.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 16 Jun 2010 10:47:44 +0000 (12:47 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 16 Jun 2010 10:47:44 +0000 (12:47 +0200)
commit9acc6fbecd5b8c65c1efa6ac4971adbafada05cd
tree1c5876926d05bcdce7fad6e62512cc3b7a2cd3e0
parentb149566951240b283ca05fd1fe5447f0801d6b99
Don't treat datacon id's as local variables.

This ensures that datacon id's get simplified like they should.
Previously, this wasn't really needed, since a datacon id would become a
constant that could be used in conditional assignments directly. Now,
however, there might be more complex ADT's (like the Maybe type), where
one of the constructors is without arguments (e.g., Nothing), but
assigning the enumeration value directly won't work (it should go into
the constructor field).
clash/CLasH/Normalize/NormalizeTools.hs