diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2017-04-13 12:26:23 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2017-04-13 12:26:23 +0100 |
commit | 54e622b46f542ed3a2ecb262d1ef6af1023b31f3 (patch) | |
tree | 8e49fa24cb0538005a5afc965ae11f17c35c02dc | |
parent | a7bebaa50fe8f87e88d2ca5bb56caef1211e23e0 (diff) | |
download | haskell-wip/mpickering/rn-env.tar.gz |
Remove new name logic from renamerwip/mpickering/rn-env
-rw-r--r-- | compiler/rename/RnEnv.hs | 4 |
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.. |