External Core lib: lots of cleanup
authorTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 14 Jan 2009 22:44:28 +0000 (22:44 +0000)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 14 Jan 2009 22:44:28 +0000 (22:44 +0000)
commit5a4c6ef6e909fbd978ff81bb3453489e884d1885
treebb7fd759ba2c3d3c9fe6c6d769cc49b4d3cfe750
parent7a410061004cedc1de8856b4f049a58c09ee6c38
External Core lib: lots of cleanup

- Factor out code for applying newtypes from Check into CoreUtils
- Use this code in Prep, which allowed for some simplification
- Change Merge and ElimDeadCode to not flatten top-level binds
- Add a flag for elimDeadCode to tell it whether to keep
exported bindings or not.
- Other things.
utils/ext-core/Language/Core/Check.hs
utils/ext-core/Language/Core/CoreUtils.hs
utils/ext-core/Language/Core/ElimDeadCode.hs
utils/ext-core/Language/Core/Merge.hs
utils/ext-core/Language/Core/Prep.hs
utils/ext-core/Language/Core/Printer.hs
utils/ext-core/Language/Core/Utils.hs
utils/ext-core/extcore.cabal