Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Mar 2, 2015
  1. Joachim Breitner

    Extend the docs for Data.List.transpose

    nomeata authored
    by giving a sufficient general example to explain what happens when the
    rows are not of the same lengths. Thanks to Doug McIlroy for the
    suggestoin. Fixes #10128.
Commits on Feb 27, 2015
  1. Herbert Valerio Riedel

    Update process submodule to 1.2.3.0 snapshot

    hvr authored
    This fixes the compilation failure
    
      libraries\process\System\Process\Internals.hs:36:5:
          Not in scope: `stopDelegateControlC'
          ...
    
    (however, GHC HEAD skipped process-1.2.2 which has that issue)
Commits on Feb 26, 2015
  1. Simon Marlow
Commits on Feb 24, 2015
  1. Edward Z. Yang

    Axe ModFinderCache, folding it into a generalized FinderCache.

    ezyang authored
    Summary:
    FinderCache is now keyed by a module, ModuleNames in the home package are
    turned into Modules using thisPackage in the dynamic flags.  Simplifies some
    code!
    
    Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
    
    Test Plan: validate
    
    Reviewers: simonpj, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D634
  2. Simon Marlow
  3. Herbert Valerio Riedel
  4. Herbert Valerio Riedel

    Emulate GMP 5+ operations for GMP 4.x compat

    hvr authored
    The following operations are only (officially) available starting with
    GMP 5.0:
    
    - `mpn_and_n`
    - `mpn_andn_n`
    - `mpn_ior_n`
    - `mpn_xor_n`
    
    In order to properly support GMP 4.x, we simply emulate those operation
    in terms of `mpz_*` operations available in GMP 4.x (unless GMP>=5.x
    available, obviously) while incurring some overhead. Ideally, GMP 4.x
    environments will reach their EOL in the foreseeable future...
    
    This fixes #10003
    
    Reviewed By: austin
    
    Differential Revision: https://phabricator.haskell.org/D675
Commits on Feb 23, 2015
  1. Oleg Grenrus Austin Seipp

    driver: split -fwarn-unused-binds into 3 flags (fixes #17)

    phadej authored thoughtpolice committed
    Summary: New flags:
    
     -fwarn-unused-top-binds
     -fwarn-unused-local-binds
     -fwarn-unused-pattern-binds
    
    Test Plan: `tests/rename/should_compile/T17` tests
    
    Correct other tests
    
    Reviewers: austin, rwbarton
    
    Reviewed By: austin, rwbarton
    
    Subscribers: rwbarton, carter, thomie
    
    Differential Revision: https://phabricator.haskell.org/D591
    
    GHC Trac Issues: #17
  2. Joachim Breitner

    Comment typo

    nomeata authored
    and reference to long-removed note in CallArity.hs
  3. Wieland Hoffmann Austin Seipp

    System.IO.Error: Fix a documentation link to Control.Exception.Exception

    mineo authored thoughtpolice committed
    Instead of using double quotes (which are used to link to modules), use
    single quotes (that are used to link, among others, to link to types,
    which C.E.Exception is).
    
    Signed-off-by: Austin Seipp <austin@well-typed.com>
  4. Austin Seipp

    testsuite: update .gitignore

    thoughtpolice authored
    Signed-off-by: Austin Seipp <austin@well-typed.com>
  5. redneb Austin Seipp

    Provide a faster implementation for the Read Integer instance

    redneb authored thoughtpolice committed
    Summary:
    The current implementation of the Read Integer instance has quadratic
    complexity and thus performs badly on large inputs. This patch provides a
    rather simple sub-quadratic algorithm. For small inputs, we use the old
    algorithm (there is a small penalty for that). The gains for large
    inputs can be dramatic: on my system, the time to perform
        read (take 1000000 $ cycle "1234567890") :: Integer
    drops from 65 seconds to less than a second.
    
    Note that we already provide an ad-hoc instance for Show Integer, so this
    patch essentially does the same thing for Read Integer.
    
    Test Plan: Check that read :: String -> Integer returns correct results for inputs of various sizes.
    
    Reviewers: austin, hvr
    
    Reviewed By: austin, hvr
    
    Subscribers: ekmett, thomie
    
    Differential Revision: https://phabricator.haskell.org/D645
    
    GHC Trac Issues: #10067
  6. Alexander Lukyanov Austin Seipp

    base: Fix (**) implementation for Data.Complex

    alexdontexist authored thoughtpolice committed
    See the extensive discussion in #8539.
    
    Signed-off-by: Austin Seipp <austin@well-typed.com>
  7. Austin Seipp

    Fix build bogons due to missing separator

    thoughtpolice authored
    Signed-off-by: Austin Seipp <austin@well-typed.com>
  8. Austin Seipp

    base: fix broken link (#10088)

    thoughtpolice authored
    Signed-off-by: Austin Seipp <austin@well-typed.com>
  9. Austin Seipp

    docs: Flatten MAKEHELP/SUBMAKEHELP

    thoughtpolice authored
    There's no reason to have two files, and this is one step towards a
    cleaner root directory.
    
    Signed-off-by: Austin Seipp <austin@well-typed.com>
  10. Austin Seipp

    docs: add INSTALL.md to root dir (#9926)

    thoughtpolice authored
    This gives a very quick rundown on installation for end-users (HACKING
    etc is for developers/possible contributors).
    
    Signed-off-by: Austin Seipp <austin@well-typed.com>
  11. Thomas Miedema Austin Seipp

    Show '#' on unboxed literals

    thomie authored thoughtpolice committed
    Test Plan: deriving/should_run/T10104
    
    Reviewers: austin, jstolarek
    
    Reviewed By: austin, jstolarek
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D672
    
    GHC Trac Issues: #10104
  12. Tamar Christina Austin Seipp

    rts/linker: ignore unknown PE sections

    Mistuke authored thoughtpolice committed
    Summary: Currently the linker tries to see if it understands/knows every section in the PE file before it continues. If it encounters a section it doesn't know about it errors out. Every time there's a change in MinGW compiler that adds a new section to the PE file this will break the ghc linker. The new sections don't need to be understood by `ghc` to continue so instead of erroring out the section is just ignored. When running with `-debug` the sections that are ignored will be printed.
    
    Test Plan:
    See the file `ghcilinkerbug.zip` in #9907.
    
     1) unzip file content.
     2) open examplecpp.cabal and change base <4.8 to <4.9.
     3) execute cabal file with cabal repl.
    
    Applying the patch makes `cabal repl` in step 3) work.
    
    Note that the file will fail on a `___mingw_vprintf` not being found. This is because of the `cc-options` specifying `-std=c++0x`, which will also require `libmingwex.a` to be linked in but wasn't specified in the cabal file. To fix this, remove the `cc-options` which defaults to c99.
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D671
    
    GHC Trac Issues: #9907, #7103, #10051, #7056, #8546
  13. Thomas Miedema Austin Seipp

    Declare some Makefile targets to be PHONY

    thomie authored thoughtpolice committed
    Summary:
    Given:
      a Makefile with a non-PHONY target called `target`
    If:
      after running `make target`, a file exists with the same name as `target`
      (it was either already there, or it was created by running `make target`)
    And:
      `target` has no dependencies, such as `clean`, that modify or delete that
      file
    Then:
      subsequent invocations of `make target` will not have any effect.
    
    Solution: make `target` PHONY.
    
    BAD:
      ```
      foo:
              ...
              ./foo
      ```
    
    BETTER:
      ```
      foo:
              ...
              ./foo
      .PHONY: foo
      ```
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D670
  14. Thomas Miedema Austin Seipp

    Always ignore user-package-db when running tests

    thomie authored thoughtpolice committed
    Summary:
    The user package database was already ignored for systems that
    `have_subprocess`.
    
    To [wiki:Debugging/InstallingPackagesInplace install] a package inplace:
    `cabal install
      --with-compiler=<inplace-ghc>
      --with-package-db=<inplace-package-db>`
      <package>
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D668
  15. Jan Bracker Austin Seipp

    Fix for ticket #10078: ensure that tcPluginStop is called even in cas…

    jbracker authored thoughtpolice committed
    …e of type errors
    
    Summary:
    Remove unused variable that appeared through the fix for ticket #10078
    
    Merge branch 'master' of git://git.haskell.org/ghc
    
    Added comment with bug ID.
    
    Reviewers: adamgundry, gridaphobe, austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D667
    
    GHC Trac Issues: #10078
  16. PHO Austin Seipp

    Make top-level "configure" accept and propagate --with-curses-{includ…

    phonohawk authored thoughtpolice committed
    …es,libraries} to libraries
    
    Summary:
    If curses is installed into some non-standard path, we currently have
    to say something like the following in mk/build.mk:
    
      libraries/terminfo_CONFIGURE_OPTS += \
          --configure-option=--with-curses-includes=/somewhere/include \
          --configure-option=--with-curses-libraries=/somewhere/lib
    
    This is because the top-level configure does not accept nor propagate
    --with-curses-{includes,libraries} to libraries while it does so for
    iconv, gmp and libffi. It would be nice if curses were handled in the
    same manner.
    
    Test Plan: Install curses into some non-standard path. Then run the top-level "configure" script with options "--with-curses-includes=/path/to/curses/include" and "--with-curses-libraries=/path/to/curses/lib".
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie, PHO
    
    Differential Revision: https://phabricator.haskell.org/D665
    
    GHC Trac Issues: #10096
  17. Thomas Miedema Austin Seipp

    Error out on `Main` without `main` in GHCi (#7765)

    thomie authored thoughtpolice committed
    Summary:
    GHC does 2 validation checks for module `Main`:
    * does `main` exist
    * is `main` exported (#414)
    
    The second check is done in ghc as well as in ghci (and runghc and ghc -e).
    The first check however is currently not done in ghci, to prevent "'main' is
    not in scope" errors when loading simple scripts. See commit d28ba8c for
    more information.
    
    This commit tightens the special case for ghci. When the file does not contain
    a main function, but does contain an explicit module header (i.e. "module Main
    where"), then /do/ raise an error in ghci (and runghc and ghc -e) as well
    
    Test Plan:
    module/T7765: a module Main with an explicit module header but without a
    main function should be an error for all Ways.
    
    Additionaly: delete test module/mod174. It was added in commit 5a54c38, but it
    is a duplicate of module/T414.
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D649
    
    GHC Trac Issues: #7765
  18. kgardas

    fix bus errors on SPARC caused by unalignment access to alloc_limit (…

    kgardas authored
    …fixes #10043)
    
    Reviewers: austin, simonmar
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D657
Commits on Feb 22, 2015
  1. Herbert Valerio Riedel

    {Data,Generic(1),MonadZip} instances for Identity

    hvr authored
    These instances were missed when the identity functor was added to
    the `base` package (re #9664).
    
    Reviewed By: ekmett
    
    Differential Revision: https://phabricator.haskell.org/D674
Commits on Feb 21, 2015
  1. Joachim Breitner
  2. Joachim Breitner

    [ci skip] comment typo

    nomeata authored
Commits on Feb 20, 2015
  1. simonpj

    Comments only

    simonpj authored
  2. simonpj

    Comments only

    simonpj authored
  3. simonpj

    Comments only

    simonpj authored
  4. simonpj

    Add a bizarre corner-case to cgExpr (Trac #9964)

    simonpj authored
    David Feuer managed to tickle a corner case in the
    code generator. See Note [Scrutinising VoidRep]
    in StgCmmExpr.
    
    I rejigged the comments in that area of the code generator
      Note [Dodgy unsafeCoerce 1]
      Note [Dodgy unsafeCoerce 2]
    but I can't say I fully understand them, alas.
  5. simonpj

    Don't report instance constraints with fundeps as redundant

    simonpj authored
    More subtlety due to functional dependencies.
    Note [Redundant constraints in instance decls] in TcErrors.
    
    Fixes Trac #10100.
Commits on Feb 19, 2015
  1. kgardas
  2. simonpj

    Comments only

    simonpj authored
Something went wrong with that request. Please try again.