[commit: ghc] master: Remove unnecessary OrdList from decl parser. (f07b7a8)

git at git.haskell.org git at git.haskell.org
Fri Jul 3 20:44:26 UTC 2015


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

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

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

commit f07b7a876cb3b9d38bb7ed301503f5b84104fc90
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Fri Jul 3 19:35:45 2015 +0200

    Remove unnecessary OrdList from decl parser.
    
    Each production produced a singleton list.
    
    Similar treatment is applied to the decl_cls parser.
    
    This changes the type of the parseDeclaration entry point to
    
    `parseDeclaration :: P (LHsDecl RdrName)`
    
    and
    
    `parseTypeSignature :: P (LHsDecl RdrName)`
    
    which is in line with the other parser entry points.
    
    This patch also updates the conflict commentary.  There were 4 reduce/reduce
    conflicts introduced by `ffc21506894c7887d3620423aaf86bc6113a1071` which
    refactored tuple constraints.
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie, bgamari
    
    Differential Revision: https://phabricator.haskell.org/D1007


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

f07b7a876cb3b9d38bb7ed301503f5b84104fc90
 compiler/parser/Parser.y | 185 ++++++++++++++++++++++++++++-------------------
 1 file changed, 112 insertions(+), 73 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 f07b7a876cb3b9d38bb7ed301503f5b84104fc90


More information about the ghc-commits mailing list