summaryrefslogtreecommitdiff
path: root/testsuite/tests/wcompat-warnings/WCompatWarningsOn.stderr
blob: 75df49fd36c1248887229006654a92930a488ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

Template.hs:5:1: warning: [-Wsemigroup (in -Wcompat)]
    Local definition of ‘<>’ clashes with a future Prelude name.
    This will become an error in a future release.

Template.hs:11:3: warning: [GHC-50928] [-Wnoncanonical-monoid-instances (in -Wdefault, -Wcompat)]
    Noncanonical ‘(<>) = mappend’ definition detected
    in the instance declaration for ‘Semigroup S’.
    Suggested fix:
      Move definition from ‘mappend’ to ‘(<>)’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/semigroup-monoid

Template.hs:14:3: warning: [GHC-50928] [-Wnoncanonical-monoid-instances (in -Wdefault, -Wcompat)]
    Noncanonical ‘mappend’ definition detected
    in the instance declaration for ‘Monoid S’.
    ‘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

Template.hs:24:3: warning: [GHC-22705] [-Wnoncanonical-monad-instances (in -Wdefault, -Wcompat)]
    Noncanonical ‘pure = return’ definition detected
    in the instance declaration for ‘Applicative M’.
    Suggested fix:
      Move definition from ‘return’ to ‘pure’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return

Template.hs:25:3: warning: [GHC-22705] [-Wnoncanonical-monad-instances (in -Wdefault, -Wcompat)]
    Noncanonical ‘(*>) = (>>)’ definition detected
    in the instance declaration for ‘Applicative M’.
    Suggested fix:
      Move definition from ‘(>>)’ to ‘(*>)’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return

Template.hs:28:3: warning: [GHC-22705] [-Wnoncanonical-monad-instances (in -Wdefault, -Wcompat)]
    Noncanonical ‘return’ definition detected
    in the instance declaration for ‘Monad M’.
    ‘return’ will eventually be removed in favour of ‘pure’
    Suggested fix:
      Either remove definition for ‘return’ (recommended) or define as ‘return = pure’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return

Template.hs:30:3: warning: [GHC-22705] [-Wnoncanonical-monad-instances (in -Wdefault, -Wcompat)]
    Noncanonical ‘(>>)’ definition detected
    in the instance declaration for ‘Monad M’.
    ‘(>>)’ will eventually be removed in favour of ‘(*>)’
    Suggested fix:
      Either remove definition for ‘(>>)’ (recommended) or define as ‘(>>) = (*>)’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return