-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
It depends on Stream
, which specifically may become a liability
[1 of 1] Compiling Data.Stream ( Data/Stream.hs, dist/build/Data/Stream.o, dist/build/Data/Stream.dyn_o )
Data/Stream.hs:105:3: warning: [GHC-22705] [-Wnoncanonical-monad-instances]
Noncanonical ‘return’ definition detected
in the instance declaration for ‘Monad Stream’.
‘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
|
105 | return = repeat
| ^^^^^^^^^^^
Metadata
Metadata
Assignees
Labels
No labels