You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/default_typeclass: move def of return to pure (#188)
* tests/default_typeclass: move def of return to pure
Moving the definition of the `return` of the StateT monad to the
`Applicative` instance, to `pure`, fixes these warnings (which fail the
testsuite under `-Werror=noncanonical-monad-instances`):
Noncanonical ‘return’ definition detected
in the instance declaration for ‘Monad (StateT s m)’.
‘return’ will eventually be removed in favour of ‘pure’
Either remove definition for ‘return’ (recommended) or define as ‘return = pure’
Noncanonical ‘pure = return’ definition detected
in the instance declaration for ‘Applicative (StateT s m)’.
Move definition from ‘return’ to ‘pure’
* tests/default_typeclass: move def of return to pure (fixup)
Note: Requires additional Functor constraints for older GHC versions.
0 commit comments