[commit: ghc] master: Tidy up some convoluted "child/parent" code (7720c29)
git at git.haskell.org
git at git.haskell.org
Wed Oct 11 12:30:12 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/7720c293e7f5ca5089e3d154aad99e8060d6ac63/ghc
>---------------------------------------------------------------
commit 7720c293e7f5ca5089e3d154aad99e8060d6ac63
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Wed Oct 4 10:48:10 2017 +0100
Tidy up some convoluted "child/parent" code
In investigating something else (Trac #14307) I encountered the
wonders of TcRnExports.lookupChildrenExport, and the data
type ChildLookupResult.
I managed to remove the NameErr constructor from ChildLookupResult,
and simplify the code significantly at the same time.
This is just refactoring; no change in behaviour.
>---------------------------------------------------------------
7720c293e7f5ca5089e3d154aad99e8060d6ac63
compiler/rename/RnEnv.hs | 15 ++---
compiler/typecheck/TcRnExports.hs | 133 +++++++++++++++++---------------------
2 files changed, 65 insertions(+), 83 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 7720c293e7f5ca5089e3d154aad99e8060d6ac63
More information about the ghc-commits
mailing list