• Simon Peyton Jones's avatar
    Add OverloadedLists, allowing list syntax to be overloaded · 3234a4ad
    Simon Peyton Jones authored
    This work was all done by
       Achim Krause <achim.t.krause@gmail.com>
       George Giorgidze <giorgidze@gmail.com>
       Weijers Jeroen <jeroen.weijers@uni-tuebingen.de>
    
    It allows list syntax, such as [a,b], [a..b] and so on, to be
    overloaded so that it works for a variety of types.
    
    The design is described here:
        http://hackage.haskell.org/trac/ghc/wiki/OverloadedLists
    
    Eg. you can use it for maps, so that
            [(1,"foo"), (4,"bar")] :: Map Int String
    
    The main changes
     * The ExplicitList constructor of HsExpr gets witness field
     * Ditto ArithSeq constructor
     * Ditto the ListPat constructor of HsPat
    
    Everything else flows from this.
    3234a4ad
Name
Last commit
Last update
bindisttest Loading commit data...
compiler Loading commit data...
distrib Loading commit data...
docs Loading commit data...
driver Loading commit data...
ghc Loading commit data...
includes Loading commit data...
libffi Loading commit data...
libraries Loading commit data...
mk Loading commit data...
rts Loading commit data...
rules Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
ANNOUNCE Loading commit data...
HACKING Loading commit data...
LICENSE Loading commit data...
MAKEHELP Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
SUBMAKEHELP Loading commit data...
aclocal.m4 Loading commit data...
boot Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure.ac Loading commit data...
ghc.mk Loading commit data...
ghc.spec.in Loading commit data...
install-sh Loading commit data...
packages Loading commit data...
settings.in Loading commit data...
sync-all Loading commit data...
tarballs Loading commit data...
validate Loading commit data...