Skip to content

-Wnoncanonical-monoid-instances #19

Description

@andreasabel
src/System/Process/Common.hs:94:5: warning: [GHC-50928] [-Wnoncanonical-monoid-instances]
    Noncanonical ‘mappend’ definition detected
    in the instance declaration for ‘Monoid ExitCode’.
    ‘mappend’ will eventually be removed in favour of ‘(<>)’
    Suggested fix:
      Either remove definition for ‘mappend’ (recommended) or define as ‘mappend = (<>)’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/semigroup-monoid
   |
94 |     mappend x (ExitFailure 0) = x
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

The warning should be fixed eventually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions