summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarter Tazio Schonwald <carter.schonwald@gmail.com>2020-01-23 12:47:55 -0500
committerCarter Tazio Schonwald <carter.schonwald@gmail.com>2020-01-23 12:47:55 -0500
commit8a87c0ed02d45a69e9ffd0368118094a2eeac7dd (patch)
tree3a6dee01b96032fac8b19ae1a328f535f3ff3d36
parent3253dde87a727bd3280dc74cd69ebdedc27a49a9 (diff)
downloadhaskell-wip/dlist.tar.gz
revert a change that made things more complicatedwip/dlist
-rw-r--r--compiler/coreSyn/CoreSyn.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/coreSyn/CoreSyn.hs b/compiler/coreSyn/CoreSyn.hs
index 71b2c587c2..5668cf636c 100644
--- a/compiler/coreSyn/CoreSyn.hs
+++ b/compiler/coreSyn/CoreSyn.hs
@@ -2109,7 +2109,7 @@ bindersOf (Rec pairs) = [binder | (binder, _) <- pairs]
-- | 'bindersOf' applied to a list of binding groups
bindersOfBinds :: [Bind b] -> [b]
-bindersOfBinds = DL.toList . DL.concat . fmap (DL.fromList . bindersOf)
+bindersOfBinds binds = foldr ((++) . bindersOf) [] binds
rhssOfBind :: Bind b -> [Expr b]
rhssOfBind (NonRec _ rhs) = [rhs]