1. 09 Mar, 2017 2 commits
    • bitonic's avatar
      Allow compilation of C/C++/ObjC/ObjC++ files with module from TH · 0fac488c
      bitonic authored
      The main goal is to easily allow the inline-c project (and
      similar projects such as inline-java) to emit C/C++ files to
      be compiled and linked with the current module.
      Moreover, `addCStub` is removed, since it's quite fragile. Most
      notably, the C stubs end up in the file generated by
      `CodeOutput.outputForeignStubs`, which is tuned towards
      generating a file for stubs coming from `capi` and Haskell-to-C
      Reviewers: simonmar, austin, goldfire, facundominguez, dfeuer, bgamari
      Reviewed By: dfeuer, bgamari
      Subscribers: snowleopard, rwbarton, dfeuer, thomie, duncan, mboes
      Differential Revision: https://phabricator.haskell.org/D3280
    • Ben Gamari's avatar
      base: Import Data.Int in KQueue · de62f587
      Ben Gamari authored
      This was broken in the ecb880ca.
  2. 08 Mar, 2017 2 commits
  3. 07 Mar, 2017 4 commits
  4. 06 Mar, 2017 5 commits
  5. 04 Mar, 2017 2 commits
  6. 03 Mar, 2017 3 commits
  7. 01 Mar, 2017 2 commits
    • David Feuer's avatar
      Change catch# demand signature · 701256df
      David Feuer authored
      * Give `catch#` a lazy demand signature, to make it more honest.
      * Make `catchException` and `catchAny` force their arguments so they
      actually behave as advertised.
      * Use `catch` rather than `catchException` in `forkIO`, `forkOn`, and
      `forkOS` to avoid losing exceptions.
      Fixes #13330
      Reviewers: rwbarton, simonpj, simonmar, bgamari, hvr, austin
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D3244
    • David Feuer's avatar
      Update containers again · 916658d6
      David Feuer authored
      submodule update
      Get the version with `COMPLETE` pragmas for `Data.Sequence`.
      Reviewers: austin, bgamari
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D3249
  8. 28 Feb, 2017 6 commits
  9. 26 Feb, 2017 7 commits
  10. 24 Feb, 2017 1 commit
    • Simon Peyton Jones's avatar
      Make exprIsConApp_maybe work better for literals strings · a6e13d50
      Simon Peyton Jones authored
      There are two things here
      * Use exprIsLiteral_maybe to "look through" a variable bound
        to a literal string.
      * Add CONLIKE to the NOINLINE pragma for unpackCString# and
      See Trac #13317, Trac #10844, and
      Note [exprIsConApp_maybe on literal strings] in CoreSubst
      I did a nofib run and got essentially zero change except for one
      2.2% improvement in allocation for 'pretty'.
  11. 23 Feb, 2017 5 commits
    • Ryan Scott's avatar
      Add instances for (:~~:) mirroring those for (:~:) · c88b7c9a
      Ryan Scott authored
      `(:~~:)`, the hetergeneous version of `(:~:)`, should have class
      instances similar to those of `(:~:)`, especially since their
      implementations aren't particularly tricky or surprising. This adds
      Reviewers: bgamari, austin, hvr, goldfire
      Reviewed By: bgamari
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D3181
    • Andreas Klebinger's avatar
      base: Add handling of -- to getArgs for Windows · 6ca6a360
      Andreas Klebinger authored
      getArgs didn't match the treatmeant of -- in the RTS leading to
      inconsistencies between behavior on Windows and other platforms. See #13287.
      Reviewers: austin, hvr, bgamari, erikd, simonmar, rwbarton
      Reviewed By: bgamari, rwbarton
      Subscribers: rwbarton, thomie
      Differential Revision: https://phabricator.haskell.org/D3147
    • Ben Gamari's avatar
      JSON profiler reports · a2043332
      Ben Gamari authored
      This introduces a JSON output format for cost-centre profiler reports.
      It's not clear whether this is really something we want to introduce
      given that we may also move to a more Haskell-driven output pipeline in
      the future, but I nevertheless found this helpful, so I thought I would
      put it up.
      Test Plan: Compile a program with `-prof -fprof-auto`; run with `+RTS
      Reviewers: austin, erikd, simonmar
      Reviewed By: simonmar
      Subscribers: duncan, maoe, thomie, simonmar
      Differential Revision: https://phabricator.haskell.org/D3132
    • Gabor Greif's avatar
      Spelling only [ci skip] · 9a2a2aef
      Gabor Greif authored
    • Edward Z. Yang's avatar
      Drop NFData constraint from compact. · 58415741
      Edward Z. Yang authored
      It's both unsound (easy to write a bogus NFData instance) and
      incomplete (you might want to serialize data that doesn't have
      an NFData instance, and will be fine at runtime.)  So better
      just to drop it.  (By the way, we used to need the NFData
      instance to "pre-evaluate" the data before we copied it into
      the region, but since Simon Marlow rewrote the code to directly
      evaluate and copy, this is no longer necessary.)
      Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
      Test Plan: validate
      Reviewers: simonmar, austin, dfeuer, bgamari
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D3168
  12. 22 Feb, 2017 1 commit