summaryrefslogtreecommitdiff
path: root/utils/hp2ps/Key.c
diff options
context:
space:
mode:
authorMax Bolingbroke <batterseapower@hotmail.com>2012-01-06 09:36:05 +0000
committerMax Bolingbroke <batterseapower@hotmail.com>2012-03-21 21:04:10 +0000
commitaecacda1f5227601bf387e48ec57079a52accd0c (patch)
tree6b53444f9876f217ad36f71978cf91d886be5c44 /utils/hp2ps/Key.c
parentae2d23ed5a9f9ec5e488d3eafd11c34b69ee387e (diff)
downloadhaskell-aecacda1f5227601bf387e48ec57079a52accd0c.tar.gz
Make impossible-alternative-finding code more reusable
Makes the following changes: 1. Generalises the type signatures of some functions relating to alternatives so that the type of "variables" and "expression" is not specified 2. Puts the bulk of the alternative-filtering code into a new function filterAlts (in CoreUtils) that can be used outside of the SimplM monad 3. Allows prepareAlts to return a null alternatives list if none are applicable - it turns out that this case was already handled by the caller (in the simplifier). This should result in a modest optimisation improvement in some cases. Conflicts: compiler/coreSyn/CoreUtils.lhs compiler/simplCore/SimplUtils.lhs
Diffstat (limited to 'utils/hp2ps/Key.c')
0 files changed, 0 insertions, 0 deletions