1. 16 Jan, 2015 5 commits
    • Alan Zimmerman's avatar
      API Annotations tweaks. · 11881ec6
      Alan Zimmerman authored
      HsTyLit now has SourceText
      Update documentation of HsSyn to reflect which annotations are attached to which element.
      Ensure that the parser always keeps HsSCC and HsTickPragma values, to
      be ignored in the desugar phase if not needed
      Bringing in SourceText for pragmas
      Add Location in NPlusKPat
      Add Location in FunDep
      Make RecCon payload Located
      Explicitly add AnnVal to RdrName where it is compound
      Add Location in IPBind
      Add Location to name in IEThingAbs
      Add Maybe (Located id,Bool) to Match to track fun_id,infix
        This includes converting Match into a record and adding a note about why
        the fun_id needs to be replicated in the Match.
      Add Location in KindedTyVar
      Sort out semi-colons for parsing
        - import statements
        - stmts
        - decls
        - decls_cls
        - decls_inst
      This updates the haddock submodule.
      Test Plan: ./validate
      Reviewers: hvr, austin, goldfire, simonpj
      Reviewed By: simonpj
      Subscribers: thomie, carter
      Differential Revision: https://phabricator.haskell.org/D538
    • Alexander Vershilov's avatar
      Trac #9878: Make the static form illegal in interpreted mode. · fffbf062
      Alexander Vershilov authored
      The entries of the static pointers table are expected to exist as
      object code. Thus we have ghci complain with an intelligible error
      message if the static form is used in interpreted mode.
      It also includes a fix to keysHashTable in Hash.c which could cause a
      crash. The iteration of the hashtable internals was incorrect. This
      patch has the function keysHashTable imitate the iteration in
      Finally, we submit here some minor edits to comments and
      GHC.StaticPtr.StaticPtrInfo field names.
      Authored-by: Alexander Vershilov <alexander.vershilov@tweag.
      Authored-by: default avatarFacundo Domínguez <facundo.dominguez@tweag.io>
      Test Plan: ./validate
      Reviewers: simonpj, hvr, austin
      Reviewed By: austin
      Subscribers: carter, thomie, qnikst, mboes
      Differential Revision: https://phabricator.haskell.org/D586
      GHC Trac Issues: #9878
    • Edsko de Vries's avatar
      Don't hardcode the name "ghc" in versionedAppDir · 6392df07
      Edsko de Vries authored
      Reviewers: austin
      Reviewed By: austin
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D618
    • Simon Peyton Jones's avatar
      Fix a terrible bug in the canonicaliser which led to an infinite loop · 854e7b8e
      Simon Peyton Jones authored
      This fixes Trac #9971
      Merge into the 7.10 branch
    • Simon Peyton Jones's avatar
      Repsect the package name when checking for self-import · fb7c3117
      Simon Peyton Jones authored
      Fixes Trac #9997.
      In doing this I tripped across the specialness of "this" in
      PackageImports.  The magic constant (fsLit "this") is scattered across
      the compiler and ought to be put in one place.  But where?
  2. 14 Jan, 2015 6 commits
  3. 13 Jan, 2015 10 commits
  4. 12 Jan, 2015 4 commits
    • Ben Gamari's avatar
      Event Manager: Make one-shot a per-registration property · 02343998
      Ben Gamari authored
      Currently the event manager has a global flag for whether to create
      epoll-like notifications as one-shot (e.g. EPOLLONESHOT, where an fd
      will be deactivated after its first event) or standard multi-shot
      Unfortunately this means that the event manager may export either
      one-shot or multi-shot semantics to the user. Even worse, the user has
      no way of knowing which semantics are being delivered. This resulted in
      breakage in the usb[1] library which deadlocks after notifications on
      its fd are disabled after the first event is delivered.  This patch
      reworks one-shot event support to allow the user to choose whether
      one-shot or multi-shot semantics are desired on a per-registration
      basis. The event manager can then decide whether to use a one-shot or
      multi-shot epoll.
      A registration is now defined by a set of Events (as before) as well as
      a Lifetime (either one-shot or multi-shot). We lend monoidal structure
      to Lifetime choosing OneShot as the identity. This allows us to combine
      Lifetime/Event pairs of an fd to give the longest desired lifetime of
      the registration and the full set of Events for which we want
      [1] https://github.com/basvandijk/usb/issues/7
      Test Plan: Add more test cases and validate
      Reviewers: tibbe, AndreasVoellmy, hvr, austin
      Reviewed By: austin
      Subscribers: thomie, carter, simonmar
      Differential Revision: https://phabricator.haskell.org/D347
    • Herbert Valerio Riedel's avatar
    • rwbarton's avatar
      Move libffi configuration after basic toolchain setup · a5bc2579
      rwbarton authored
      The relevant aspect is that the libffi configuration's AC_CHECK_LIB
      and AC_CHECK_HEADERS are moved after FIND_GCC. There are two reasons
      to do this:
      1. We should detect the presence of libffi using the C compiler
      that we are eventually going to use to build GHC.
      2. Running AC_CHECK_HEADERS before FIND_GCC pollutes the CPP variable
      with "gcc -E" (wrong when cross-compiling), and CPP is not reset
      by FIND_GCC. Thus this patch fixes x86_64 -> i386 cross-compilation
      of integer-gmp2.
      Test Plan: Local x86_64 -> i386 cross-compiling validate; Harbormaster
      Reviewers: austin
      Reviewed By: austin
      Subscribers: erikd, carter, thomie
      Differential Revision: https://phabricator.haskell.org/D597
    • rwbarton's avatar
      inplace: Don't add empty component to LD_LIBRARY_PATH when it is empty · fe0d289d
      rwbarton authored
      Summary: Avoids a confusing inconsistency when testing #9386 (about ghci finding .so files in .).
      Test Plan: validate
      Reviewers: austin
      Reviewed By: austin
      Subscribers: carter, thomie
      Differential Revision: https://phabricator.haskell.org/D593
      GHC Trac Issues: #9386
  5. 11 Jan, 2015 1 commit
  6. 09 Jan, 2015 14 commits