Skip to content
Snippets Groups Projects
  1. Mar 01, 2024
    • Arnaud Spiwack's avatar
      Improve error messages coming from non-linear patterns · dec6d8d3
      Arnaud Spiwack authored and Marge Bot's avatar Marge Bot committed
      This enriched the `CtOrigin` for non-linear patterns to include data
      of the pattern that created the constraint (which can be quite useful
      if it occurs nested in a pattern) as well as an explanation why the
      pattern is non-restricted in (at least in some cases).
      dec6d8d3
    • Sylvain Henry's avatar
      JS linker: filter unboxed tuples · bbdb6286
      Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
      bbdb6286
    • Torsten Schmits's avatar
      Introduce ListTuplePuns extension · d91d00fc
      Torsten Schmits authored and Marge Bot's avatar Marge Bot committed
      This implements Proposal 0475, introducing the `ListTuplePuns` extension
      which is enabled by default.
      
      Disabling this extension makes it invalid to refer to list, tuple and
      sum type constructors by using built-in syntax like `[Int]`,
      `(Int, Int)`, `(# Int#, Int# #)` or `(# Int | Int #)`.
      Instead, this syntax exclusively denotes data constructors for use with
      `DataKinds`.
      The conventional way of referring to these data constructors by
      prefixing them with a single quote (`'(Int, Int)`) is now a parser
      error.
      
      Tuple declarations have been moved to `GHC.Tuple.Prim` and the `Solo`
      data constructor has been renamed to `MkSolo` (in a previous commit).
      Unboxed tuples and sums now have real source declarations in `GHC.Types`.
      Unit and solo types for tuples are now called `Unit`, `Unit#`, `Solo`
      and `Solo#`.
      Constraint tuples now have the unambiguous type constructors `CTuple<n>`
      as well as `CUnit` and `CSolo`, defined in `GHC.Classes` like before.
      
      A new parser construct has been added for the unboxed sum data
      constructor declarations.
      
      The type families `Tuple`, `Sum#` etc. that were intended to provide
      nicer syntax have been omitted from this change set due to inference
      problems, to be implemented at a later time.
      See the MR discussion for more info.
      
      Updates the submodule utils/haddock.
      Updates the cabal submodule due to new language extension.
      
          Metric Increase:
              haddock.base
      
          Metric Decrease:
              MultiLayerModulesTH_OneShot
              size_hello_artifact
      
      Proposal document: https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0475-tuple-syntax.rst
      
      Merge request: !8820
      
      Tracking ticket: #21294
      d91d00fc
    • Matthew Pickering's avatar
    • Matthew Pickering's avatar
      ci: Enable more documentation building · 67ace1c5
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      Here we enable documentation building on
      
      1. Darwin: The sphinx toolchain was already installed so we enable html
         and manpages.
      2. Rocky8: Full documentation (toolchain already installed)
      3. Alpine: Full documetnation (toolchain already installed)
      4. Windows: HTML and manpages (toolchain already installed)
      
      Fixes #24465
      67ace1c5
    • Matthew Pickering's avatar
      Bump minimum bootstrap version to 9.6 · d9d69e12
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      d9d69e12
    • Matthew Pickering's avatar
      ci: darwin: Update to 9.6.2 for boot compiler · 30f06996
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      9.6.4 is currently broken due to #24050
      
      Also update to use LLVM-15 rather than LLVM-11, which is out of date.
      30f06996
    • Matthew Pickering's avatar
      ci: Bump windows and freebsd boot compilers to 9.6.4 · cb6c11fe
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      We have previously bumped the docker images to use 9.6.4, but neglected
      to bump the windows images until now.
      cb6c11fe
    • Matthew Pickering's avatar
      hadrian: Improve parallelism in binary-dist-dir rule · 2e46c8ad
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      I noticed that the "docs" target was needed after the libraries and
      executables were built. We can improve the parallelism by needing
      everything at once so that documentation can be built immediately after
      a library is built for example.
      2e46c8ad
    • Teo Camarasu's avatar
      Reduce AtomicModifyIORef increment count · 960c8d47
      Teo Camarasu authored and Marge Bot's avatar Marge Bot committed
      This test leads to a lot of contention when N>2 and becomes very slow. Let's reduce the amount of work we do to compensate. Resolves #24490
      960c8d47
    • Cheng Shao's avatar
      testsuite: fix T23540 fragility on 32-bit platforms · 3836a110
      Cheng Shao authored and Marge Bot's avatar Marge Bot committed
      T23540 is fragile on 32-bit platforms. The root cause is usage of
      `getEvidenceTreesAtPoint`, which internally relies on `Name`'s `Ord`
      instance, which is indeterministic. The solution is adding a
      deterministic `Ord` instance for `EvidenceInfo` and sorting the
      evidence trees before pretty printing. Fixes #24449.
      3836a110
  2. Feb 29, 2024
  3. Feb 28, 2024
    • Teo Camarasu's avatar
      rts: avoid checking bdescr of value outside of Haskell heap · 74b24a9b
      Teo Camarasu authored and Teo Camarasu's avatar Teo Camarasu committed
      In nonmovingTidyWeaks we want to check if the key of a weak pointer
      lives in the non-moving heap. We do this by checking the flags of the
      block the key lives in. But we need to be careful with values that live
      outside the Haskell heap, since they will lack a block descriptor and
      looking for one may lead to a segfault. In this case we should just
      accept that it isn't on the non-moving heap.
      
      Resolves #24492
      74b24a9b
  4. Feb 27, 2024
  5. Feb 26, 2024
    • Felix Yan's avatar
      m4: Correctly detect GCC version · 61a78231
      Felix Yan authored and Marge Bot's avatar Marge Bot committed
      When calling as `cc`, GCC does not outputs lowercased "gcc" at least in 13.2.1 version here.
      
      ```
      $ cc --version
      cc (GCC) 13.2.1 20230801
      ...
      ```
      
      This fails the check and outputs the confusing message: `configure: $CC is not gcc; assuming it's a reasonably new C compiler`
      
      This patch makes it check for upper-cased "GCC" too so that it works correctly:
      
      ```
      checking version of gcc... 13.2.1
      ```
      61a78231
    • Cheng Shao's avatar
      ci: enable parallelism in hadrian/ghci scripts · 50bfdb46
      Cheng Shao authored and Marge Bot's avatar Marge Bot committed
      This commit enables parallelism when the hadrian/ghci scripts are
      called in CI. The time bottleneck is in the hadrian build step, but
      previously the build step wasn't parallelized.
      50bfdb46
    • Cheng Shao's avatar
      hadrian/hie-bios: pass -j to hadrian · c71bfdff
      Cheng Shao authored and Marge Bot's avatar Marge Bot committed
      This commit passes -j to hadrian in the hadrian/hie-bios scripts. When
      the user starts HLS in a fresh clone that has just been configured, it
      takes quite a while for hie-bios to pick up the ghc flags and start
      actual indexing, due to the fact that the hadrian build step defaulted
      to -j1, so -j speeds things up and improve HLS user experience in GHC.
      Also add -j flag to .ghcid to speed up ghcid, and sets the Windows
      build root to .hie-bios which also works and unifies with other
      platforms, the previous build root _hie-bios was missing from
      .gitignore anyway.
      c71bfdff
    • Zubin's avatar
      rel-eng/fetch-gitlab.py: Fix name of aarch64 alpine 3_18 release job · f3de8a3c
      Zubin authored and Marge Bot's avatar Marge Bot committed
      f3de8a3c
    • Jade's avatar
      GHCi: Improve response to unloading, loading and reloading modules · 4e4d47a0
      Jade authored and Marge Bot's avatar Marge Bot committed
      Fixes #13869
      4e4d47a0
  6. Feb 25, 2024
Loading