Skip to content

Commit

Permalink
OR not AND.
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
  • Loading branch information
ezyang committed Sep 28, 2012
1 parent 90fcc3b commit 96f76fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GhcPlugins/Template/Pass.hs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ transformFunc guts x = do
else return x else return x


shouldTransformBind guts (NonRec b _) = shouldTransform guts b shouldTransformBind guts (NonRec b _) = shouldTransform guts b
shouldTransformBind guts (Rec bs) = and `liftM` mapM (shouldTransform guts . fst) bs shouldTransformBind guts (Rec bs) = or `liftM` mapM (shouldTransform guts . fst) bs


-- CoreExpr = Expr CoreBndr, which is the meat of Core. Defined in -- CoreExpr = Expr CoreBndr, which is the meat of Core. Defined in
-- 'compiler/coreSyn/CoreSyn.lhs'. The sample code here is just a -- 'compiler/coreSyn/CoreSyn.lhs'. The sample code here is just a
Expand Down

0 comments on commit 96f76fd

Please sign in to comment.