src/Test/QuickCheck/Property.hs:220:3: warning: [-Wnoncanonical-monad-instances]
Noncanonical ‘pure = return’ definition detected
in the instance declaration for ‘Applicative Rose’.
Move definition from ‘return’ to ‘pure’
See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return
|
220 | pure = return
| ^^^^^^^^^^^^^
src/Test/QuickCheck/Property.hs:225:3: warning: [-Wnoncanonical-monad-instances]
Noncanonical ‘return’ definition detected
in the instance declaration for ‘Monad Rose’.
‘return’ will eventually be removed in favour of ‘pure’
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
|
225 | return x = MkRose x []
| ^^^^^^^^^^^^^^^^^^^^^^
These warnings should be addressed at some point: