[commit: ghc] master: Add Read1/Read2 methods defined in terms of ReadPrec (9cfef16)

git at git.haskell.org git at git.haskell.org
Wed Aug 31 19:01:20 UTC 2016


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

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

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

commit 9cfef167dc0b2bfa881c5d9eca38227fbdfd507c
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date:   Wed Aug 31 14:30:57 2016 -0400

    Add Read1/Read2 methods defined in terms of ReadPrec
    
    This adds new methods `liftReadList(2)` and `liftReadListPrec(2)` to the
    `Read1`/`Read2` classes which are defined in terms of `ReadPrec` instead
    of `ReadS`. This also adds related combinators and changes existing
    `Read1` and `Read2` instances to be defined in terms of the new methods.
    
    Reviewers: hvr, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2379
    
    GHC Trac Issues: #12358


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

9cfef167dc0b2bfa881c5d9eca38227fbdfd507c
 docs/users_guide/8.2.1-notes.rst       |   6 +
 docs/users_guide/bugs.rst              |  10 +
 libraries/base/Data/Functor/Classes.hs | 364 ++++++++++++++++++++++++++++-----
 libraries/base/Data/Functor/Compose.hs |  17 +-
 libraries/base/Data/Functor/Product.hs |  13 +-
 libraries/base/Data/Functor/Sum.hs     |  17 +-
 libraries/base/GHC/Read.hs             |  25 +++
 libraries/base/changelog.md            |   5 +
 8 files changed, 396 insertions(+), 61 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 9cfef167dc0b2bfa881c5d9eca38227fbdfd507c


More information about the ghc-commits mailing list