[commit: ghc] master: A bit of refactoring to TcErrors (679a661)

git at git.haskell.org git at git.haskell.org
Tue Dec 23 16:29:40 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/679a661890c9e5a218d8328658cae2b71d367024/ghc

>---------------------------------------------------------------

commit 679a661890c9e5a218d8328658cae2b71d367024
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Dec 23 15:44:00 2014 +0000

    A bit of refactoring to TcErrors
    
    This replaces a bunch of boolean flags in ReportErrCtxt with
    an algebraic data type to say how to handle expression holes
    and type holes
    
    No change in functionality; I just found myself unable to understand
    the code easily, when thinking about something else.  Result is
    quite nice, I think.


>---------------------------------------------------------------

679a661890c9e5a218d8328658cae2b71d367024
 compiler/typecheck/TcErrors.hs  | 126 ++++++++++++++++++++++------------------
 compiler/typecheck/TcRnTypes.hs |  33 +++++++----
 2 files changed, 93 insertions(+), 66 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 679a661890c9e5a218d8328658cae2b71d367024


More information about the ghc-commits mailing list