Skip to content
Snippets Groups Projects
  1. Feb 06, 2021
  2. Feb 02, 2021
    • Matthew Pickering's avatar
      Add missing instances to ghc-heap types · ddbdec41
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      These instances are useful so that a `GenClosure` form `ghc-heap` can be
      used as a key in a `Map`. Therefore the order itself is not important
      but just the fact that there is one.
      ddbdec41
    • Ben Gamari's avatar
      typecheck: Eliminate allocations in tc_eq_type · 7d910fd8
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      Previously tc_eq_type would allocate a number of closures due to the two
      boolean "mode" flags, despite the fact that these were always statically
      known.
      
      To avoid this we force tc_eq_type to inline into its call sites,
      allowing the simplifier to eliminate both some runtime branches and the
      closure allocations.
      7d910fd8
  3. Feb 01, 2021
    • Alfredo Di Napoli's avatar
      Introduce the DecoratedSDoc type · c0709c1d
      Alfredo Di Napoli authored and Marge Bot's avatar Marge Bot committed
      This commit introduces a DecoratedSDoc type which replaces the old
      ErrDoc, and hopefully better reflects the intent.
      c0709c1d
    • Alfredo Di Napoli's avatar
      Rename ErrMsg into MsgEnvelope · b1a17507
      Alfredo Di Napoli authored and Marge Bot's avatar Marge Bot committed
      Updates Haddock submodule
      b1a17507
    • Alfredo Di Napoli's avatar
      Remove ErrDoc and MsgDoc · ddc2a759
      Alfredo Di Napoli authored and Marge Bot's avatar Marge Bot committed
      This commit boldly removes the ErrDoc and the MsgDoc from the codebase.
      The former was introduced with the only purpose of classifying errors
      according to their importance, but a similar result can be obtained just
      by having a simple [SDoc], and placing bullets after each of them.
      
      On top of that I have taken the perhaps controversial decision to also
      banish MsgDoc, as it was merely a type alias over an SDoc and as such it wasn't
      offering any extra type safety. Granted, it was perhaps making type
      signatures slightly more "focused", but at the expense of cognitive
      burden: if it's really just an SDoc, let's call it with its proper name.
      ddc2a759
    • Ryan Scott's avatar
      Add driver/ghci/ghci-wrapper.cabal to .gitignore · 5464845a
      Ryan Scott authored and Marge Bot's avatar Marge Bot committed
      After commit 55ef3bdc, running `./configure`
      now generates a `driver/ghci/ghci-wrapper.cabal` file from
      `driver/ghci/ghci-wrapper.cabal.in`, which pollutes the `git` tree:
      
      ```
      $ git status
      On branch master
      Your branch is up to date with 'origin/master'.
      
      Untracked files:
        (use "git add <file>..." to include in what will be committed)
              driver/ghci/ghci-wrapper.cabal
      
      nothing added to commit but untracked files present (use "git add" to track)
      ```
      
      Since `driver/ghci/ghci-wrapper.cabal` is autogenerated, the sensible thing to
      do is to add it to `.gitignore`. While I was in town, I also added the standard
      `*.in` file disclaimer to `driver/ghci/ghci-wrapper.cabal.in`.
      
      [ci skip]
      5464845a
    • Ryan Scott's avatar
      Fix accidental unsoundness in Data.Typeable.Internal.mkTypeLitFromString · d4bcd37f
      Ryan Scott authored and Marge Bot's avatar Marge Bot committed
      An accidental use of `tcSymbol` instead of `tcNat` in the `TypeLitNat` case of
      `mkTypeLitFromString` meant that it was possible to unsafely equate `Nat` with
      `Symbol`. A consequence of this is that you could write `unsafeCoerce`, as
      observed in #19288. This is fixed easily enough, thankfully.
      
      Fixes #19288.
      d4bcd37f
  4. Jan 30, 2021
  5. Jan 29, 2021
  6. Jan 28, 2021
Loading