From: simonpj@microsoft.com Date: Wed, 16 Dec 2009 08:50:33 +0000 (+0000) Subject: Refactor to combine two eqExpr functions X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=b44b34500edbb94194d4fd6ff2acfac0b5ce7a16;hp=b44b34500edbb94194d4fd6ff2acfac0b5ce7a16;p=ghc-hetmet.git Refactor to combine two eqExpr functions I'd forgotten that Rules.lhs already has an eqExpr function. This patch combines Rules.eqExpr with the (recent) CoreUtils.eqExpr. I also did a little refactoring by defining CoreSyn.expandUnfolding_maybe (see Note [Expanding variables] in Rules.lhs), and using it in a) CoreUnfold.exprIsConApp_maybe b) Rule matching ---