Skip to content
Snippets Groups Projects
  1. Jan 10, 2024
  2. May 06, 2023
  3. Jan 18, 2023
    • Vladislav Zavialov's avatar
      Enable -Wstar-is-type by default (#22759) · e9c0537c
      Vladislav Zavialov authored and Marge Bot's avatar Marge Bot committed
      Following the plan in GHC Proposal #143 "Remove the * kind syntax",
      which states:
      
      	In the next release (or 3 years in), enable -fwarn-star-is-type by default.
      
      The "next release" happens to be 9.6.1
      
      I also moved the T21583 test case from should_fail to should_compile,
      because the only reason it was failing was -Werror=compat in our test
      suite configuration.
      e9c0537c
  4. Mar 22, 2019
  5. Oct 12, 2018
  6. Aug 21, 2018
  7. Aug 07, 2018
    • Herbert Valerio Riedel's avatar
      Turn on MonadFail desugaring by default · aab8656b
      Herbert Valerio Riedel authored and Ben Gamari's avatar Ben Gamari committed
      Summary:
      This contains two commits:
      
      ----
      
      Make GHC's code-base compatible w/ `MonadFail`
      
      There were a couple of use-sites which implicitly used pattern-matches
      in `do`-notation even though the underlying `Monad` didn't explicitly
      support `fail`
      
      This refactoring turns those use-sites into explicit case
      discrimations and adds an `MonadFail` instance for `UniqSM`
      (`UniqSM` was the worst offender so this has been postponed for a
      follow-up refactoring)
      
      ---
      
      Turn on MonadFail desugaring by default
      
      This finally implements the phase scheduled for GHC 8.6 according to
      
      https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail#Transitionalstrategy
      
      This also preserves some tests that assumed MonadFail desugaring to be
      active; all ghc boot libs were already made compatible with this
      `MonadFail` long ago, so no changes were needed there.
      
      Test Plan: Locally performed ./validate --fast
      
      Reviewers: bgamari, simonmar, jrtc27, RyanGlScott
      
      Reviewed By: bgamari
      
      Subscribers: bgamari, RyanGlScott, rwbarton, thomie, carter
      
      Differential Revision: https://phabricator.haskell.org/D5028
      aab8656b
  8. Sep 07, 2017
    • Herbert Valerio Riedel's avatar
      Make Semigroup a superclass of Monoid (re #14191) · 8ae263ce
      Herbert Valerio Riedel authored
      Unfortunately, this requires introducing a couple of .hs-boot files to
      break up import cycles (mostly to provide class & typenames in order to
      be able to write type signatures).
      
      This does not yet re-export `(<>)` from Prelude (while the class-name
      `Semigroup` is reexported); that will happen in a future commit.
      
      Test Plan: local ./validate passed
      
      Reviewers: ekmett, austin, bgamari, erikd, RyanGlScott
      
      Reviewed By: ekmett, RyanGlScott
      
      GHC Trac Issues: #14191
      
      Differential Revision: https://phabricator.haskell.org/D3927
      8ae263ce
  9. Dec 06, 2015
    • Herbert Valerio Riedel's avatar
      Implement new `-fwarn-noncanonical-monoid-instances` · 986ceb16
      Herbert Valerio Riedel authored
      This is similiar to the `-fwarn-noncanonical-monad-instances` warning
      implemented via #11128, but applies to `Semigroup`/`Monoid` instead
      and the `(<>)`/`mappend` methods (of which `mappend` is planned to move
      out of `Monoid` at some point in the future being redundant and thus
      error-prone).
      
      This warning is contained in `-Wcompat` but not in `-Wall`.
      
      This addresses #11150
      
      Reviewed By: quchen
      
      Differential Revision: https://phabricator.haskell.org/D1553
      986ceb16
  10. Nov 29, 2015
    • quchen's avatar
      Implement warnings for Semigroups as parent of Monoid · 290def72
      quchen authored and Ben Gamari's avatar Ben Gamari committed
      This patch is similar to the AMP patch (#8004), which offered two
      functions:
      
        1. Warn when an instance of a class has been given, but the type does
           not have a certain superclass instance
        2. Warn when top-level definitions conflict with future Prelude names
      
      These warnings are issued as part of the new `-Wcompat` warning group.
      
      Reviewers: hvr, ekmett, austin, bgamari
      
      Reviewed By: hvr, ekmett, bgamari
      
      Subscribers: ekmett, thomie
      
      Differential Revision: https://phabricator.haskell.org/D1539
      
      GHC Trac Issues: #11139
      290def72
  11. Nov 24, 2015
Loading