Skip to content
Snippets Groups Projects
  1. Apr 02, 2024
    • Cheng Shao's avatar
      rts: fix errors when compiling with TSAN · e91dad93
      Cheng Shao authored and Marge Bot's avatar Marge Bot committed
      This commit fixes rts compilation errors when compiling with TSAN:
      
      - xxx_FENCE macros are redefined and trigger CPP warnings.
      - Use SIZEOF_W. WORD_SIZE_IN_BITS is provided by MachDeps.h which
        Cmm.h doesn't include by default.
      e91dad93
    • Ben Gamari's avatar
      rts: Fix TSAN_ENABLED CPP guard · c8a4c050
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      This should be `#if defined(TSAN_ENABLED)`, not `#if TSAN_ENABLED`,
      lest we suffer warnings.
      c8a4c050
  2. Apr 01, 2024
  3. Mar 29, 2024
  4. Mar 27, 2024
  5. Mar 26, 2024
  6. Mar 25, 2024
  7. Mar 23, 2024
    • Ben Gamari's avatar
      docs: Drop old release notes, add for 9.12.1 · 8d67f247
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      8d67f247
    • Andreas Klebinger's avatar
      NCG: Fix a bug in jump shortcutting. · 5bd8ed53
      Andreas Klebinger authored and Marge Bot's avatar Marge Bot committed
      When checking if a jump has more than one destination account for the
      possibility of some jumps not being representable by a BlockId.
      
      We do so by having isJumpishInstr return a `Maybe BlockId` where Nothing
      represents non-BlockId jump destinations.
      
      Fixes #24507
      5bd8ed53
    • Tristan Cacqueray's avatar
      docs: remove the don't use float hint · 8f7cfc7e
      Tristan Cacqueray authored and Marge Bot's avatar Marge Bot committed
      This hint is outdated, ``Complex Float`` are now specialised,
      and the heap space suggestion needs more nuance so it should
      be explained in the unboxed/storable array documentation.
      8f7cfc7e
    • Simon Peyton Jones's avatar
      Print more info about kinds in error messages · b72705e9
      Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
      This fixes #24553, where GHC unhelpfully said
      
        error: [GHC-83865]
          • Expected kind ‘* -> * -> *’, but ‘Foo’ has kind ‘* -> * -> *’
      
      See Note [Showing invisible bits of types in error messages]
      b72705e9
    • Apoorv Ingle's avatar
      Fix for #24552 (see testcase T24552) · 0c48f2b9
      Apoorv Ingle authored and Marge Bot's avatar Marge Bot committed
      Fixes for a bug in desugaring pattern synonyms matches, introduced
      while working on  on expanding `do`-blocks in #18324
      
      The `matchWrapper` unecessarily (and incorrectly) filtered out the
      default wild patterns in a match. Now the wild pattern alternative is
      simply ignored by the pm check as its origin is `Generated`.
      The current code now matches the expected semantics according to the language spec.
      0c48f2b9
    • Matthew Craven's avatar
      Improve toInteger @Word32 on 64-bit platforms · 8a8ac65a
      Matthew Craven authored and Marge Bot's avatar Marge Bot committed
      On 64-bit platforms, every Word32 fits in an Int, so we can
      convert to Int# without having to perform the overflow check
      integerFromWord# uses internally.
      8a8ac65a
  8. Mar 22, 2024
  9. Mar 21, 2024
    • Andrei Borzenkov's avatar
      Fix TH handling in `pat_to_type_pat` function (#24571) · 6fafc51e
      Andrei Borzenkov authored and Marge Bot's avatar Marge Bot committed
      There was missing case for `SplicePat` in `pat_to_type_at` function,
      hence patterns with splicing that checked against `forall->` doesn't work
      properly because they fall into the "illegal pattern" case.
      
      Code example that is now accepted:
      
        g :: forall a -> ()
        g $([p| a |]) = ()
      6fafc51e
    • Preetham Gujjula's avatar
      docs: Remove mention of non-existent Ord instance for Complex · 247fc0fa
      Preetham Gujjula authored and Marge Bot's avatar Marge Bot committed
      The documentation for Data.Complex says that the Ord instance for Complex Float
      is deficient, but there is no Ord instance for Complex a. The Eq instance for
      Complex Float is similarly deficient, so we use that as an example instead.
      247fc0fa
    • Vladislav Zavialov's avatar
      Type operators in promoteOccName (#24570) · da2a10ce
      Vladislav Zavialov authored and Marge Bot's avatar Marge Bot committed
      Type operators differ from term operators in that they are lexically
      classified as (type) constructors, not as (type) variables.
      
      Prior to this change, promoteOccName did not account for this
      difference, causing a scoping issue that affected RequiredTypeArguments.
      
        type (!@#) = Bool
        f = idee (!@#)      -- Not in scope: ‘!@#’  (BUG)
      
      Now we have a special case in promoteOccName to account for this.
      da2a10ce
    • Alan Zimmerman's avatar
      EPA: Clean up Exactprint helper functions a bit · 5f275176
      Alan Zimmerman authored and Marge Bot's avatar Marge Bot committed
      - Introduce a helper lens to compose on `EpAnn a` vs `a` versions
      - Rename some prime versions of functions back to non-prime
        They were renamed during the rework
      5f275176
  10. Mar 20, 2024
  11. Mar 19, 2024
Loading