scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.72k stars 134 forks source link

ActionT has a noncanonical Monad instance #294

Closed ocramz closed 1 year ago

ocramz commented 1 year ago
scotty                           >     Noncanonical ‘return’ definition detected
scotty                           >     in the instance declaration for ‘Monad (ActionT e m)’.
scotty                           >     ‘return’ will eventually be removed in favour of ‘pure’
scotty                           >     Either remove definition for ‘return’ (recommended) or define as ‘return = pure’
scotty                           >     See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return
scotty                           >     |
scotty                           > 167 |     return = ActionT . return