summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2017-04-13 12:26:23 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2017-04-13 12:26:23 +0100
commit54e622b46f542ed3a2ecb262d1ef6af1023b31f3 (patch)
tree8e49fa24cb0538005a5afc965ae11f17c35c02dc
parenta7bebaa50fe8f87e88d2ca5bb56caef1211e23e0 (diff)
downloadhaskell-wip/mpickering/rn-env.tar.gz
Remove new name logic from renamerwip/mpickering/rn-env
-rw-r--r--compiler/rename/RnEnv.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rename/RnEnv.hs b/compiler/rename/RnEnv.hs
index 5ca8050b6e..8feea01160 100644
--- a/compiler/rename/RnEnv.hs
+++ b/compiler/rename/RnEnv.hs
@@ -260,9 +260,7 @@ lookupTopBndrRn_maybe rdr_name
-- This deals with the case of derived bindings, where
-- we don't bother to call newTopSrcBinder first
-- We assume there is no "parent" name
- = do { loc <- getSrcSpanM
- ; n <- newGlobalBinder rdr_mod rdr_occ loc
- ; return (Just n)}
+ = do { Just <$> lookupOrig rdr_mod rdr_occ }
-- MP: This looks dodgy, why not just make sure the calls are inserted..