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
The monad instance for Yampa.FRP.Task.Task does not define return in terms of the Applicativepure. This is leading to a warning due to upcoming changes in GHC:
src/FRP/Yampa/Task.hs:113:3: warning: [-Wnoncanonical-monad-instances]
Noncanonical `return' definition detected
in the instance declaration for `Monad (Task a b)'.
`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
The definition is the same as that of pure, so there's no reason not to rely on it.
The text was updated successfully, but these errors were encountered:
The monad instance for Yampa.FRP.Task.Task does not define return in
terms of the Applicative pure. This is leading to a warning due to
upcoming changes in GHC. The definition is the same as that of pure, so
there's no reason not to rely on it.
This commit modifies the Monad instance of Yampa.FRP.Task to define
return in terms of the Applicative pure.
The monad instance for Yampa.FRP.Task.Task does not define return in
terms of the Applicative pure. This is leading to a warning due to
upcoming changes in GHC. The definition is the same as that of pure, so
there's no reason not to rely on it.
This commit modifies the Monad instance of Yampa.FRP.Task.Task to define
return in terms of the Applicative pure.
The monad instance for
Yampa.FRP.Task.Task
does not definereturn
in terms of theApplicative
pure
. This is leading to a warning due to upcoming changes in GHC:The definition is the same as that of
pure
, so there's no reason not to rely on it.The text was updated successfully, but these errors were encountered: