[commit: ghc] master: Refactor the code that prevents recursion among Coercible constraints (203cf0e)

git at git.haskell.org git at git.haskell.org
Thu Nov 6 15:42:56 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/203cf0e46b1cd0880db81d1129d27b18460359c3/ghc

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

commit 203cf0e46b1cd0880db81d1129d27b18460359c3
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Nov 6 15:41:50 2014 +0000

    Refactor the code that prevents recursion among Coercible constraints
    
    The main description is in Note [Preventing recursive dictionaries]
    in TcRnTypes, which applies only to Coercible dictionaries.
    
    But it was a bit of a mess:
     - It wasn't applied consistently
     - It was being applied to non-Coercible dictionaries in some places
    
    This patch tidies it up.
    
    This hack will largely go away when Richard starts treating Coercible
    constraints more like equalities than like dictionaries.


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

203cf0e46b1cd0880db81d1129d27b18460359c3
 compiler/typecheck/TcInteract.lhs |  8 +++---
 compiler/typecheck/TcRnTypes.lhs  | 29 ++++++++++++---------
 compiler/typecheck/TcSMonad.lhs   | 53 ++++++++++++++++++---------------------
 3 files changed, 44 insertions(+), 46 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 203cf0e46b1cd0880db81d1129d27b18460359c3


More information about the ghc-commits mailing list