[GHC] #11128: New `-fwarn-noncanonical-monad-instances` warning

GHC ghc-devs at haskell.org
Sun Dec 6 15:38:42 UTC 2015


#11128: New `-fwarn-noncanonical-monad-instances` warning
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                Owner:  hvr
            Type:  feature request   |               Status:  closed
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.10.2
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1516
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"986ceb1679b501414b996c520b08ce929a40f94c/ghc"
 986ceb16/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="986ceb1679b501414b996c520b08ce929a40f94c"
 Implement new `-fwarn-noncanonical-monoid-instances`

 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
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11128#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list