[commit: ghc] wip/orf-reboot: Implement part 1 of OverloadedRecordFields (7f15a07)

git at git.haskell.org git at git.haskell.org
Mon Jun 29 08:30:14 UTC 2015


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

On branch  : wip/orf-reboot
Link       : http://ghc.haskell.org/trac/ghc/changeset/7f15a072e8d127fc3e497780d971b3cd1a2a0423/ghc

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

commit 7f15a072e8d127fc3e497780d971b3cd1a2a0423
Author: Adam Gundry <adam at well-typed.com>
Date:   Fri Mar 27 15:40:50 2015 +0000

    Implement part 1 of OverloadedRecordFields
    
    Summary:
    This implements the most recent variant of the OverloadedRecordFields
    extension, as described at
    https://ghc.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields/Redesign
    and with notes on the implementation at
    https://ghc.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields/Implementation
    
    This includes fairly wide-ranging changes in order to allow multiple
    records within the same module to use the same field names.  Note that
    it does *not* allow record selectors to be used if they are
    ambiguous; subsequent parts will make this possible using orthogonal
    extensions, as described on the wiki pages.  It is being pushed for
    review first because it touches the most parts of the codebase, and
    requires changes to several GHC API datatypes in order to distinguish
    between field labels (which may be overloaded) and selector function
    names (which are always unique).
    
    Haddock has been adapted to compile with the GHC API changes, but
    it will need further work to properly support modules that use the
    OverloadedRecordFields extension.
    
    Test Plan:
    New tests added in testsuite/tests/overloadedrecflds; these will be
    extended once the other parts are implemented.
    
    Reviewers: austin, simonpj, goldfire
    
    Subscribers: thomie, goldfire
    
    Differential Revision: https://phabricator.haskell.org/D761


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

7f15a072e8d127fc3e497780d971b3cd1a2a0423
 utils/haddock | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/haddock b/utils/haddock
index f9ae6aa..d137dae 160000
--- a/utils/haddock
+++ b/utils/haddock
@@ -1 +1 @@
-Subproject commit f9ae6aaf269474228f368380966fc80b73587832
+Subproject commit d137dae000575e46a2144892329df1dfb5a28980



More information about the ghc-commits mailing list