[commit: ghc] master: Define and use HsArg (fca1962)

git at git.haskell.org git at git.haskell.org
Wed Aug 30 16:26:12 UTC 2017


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

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

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

commit fca196280d38d07a697fbccdd8527821206b33eb
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Aug 30 09:25:45 2017 +0100

    Define and use HsArg
    
    All this Left/Right business was making my head spin, so I defined
    
    data HsArg tm ty
      = HsValArg tm   -- Argument is an ordinary expression     (f arg)
      | HsTypeArg  ty -- Argument is a visible type application (f @ty)
    
    and used it.  This is just simple refactor; no change in behaviour.


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

fca196280d38d07a697fbccdd8527821206b33eb
 compiler/typecheck/TcExpr.hs | 71 ++++++++++++++++++++++++--------------------
 1 file changed, 38 insertions(+), 33 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 fca196280d38d07a697fbccdd8527821206b33eb


More information about the ghc-commits mailing list