Open kostmo opened 1 year ago
To clarify this issue, it involves:
hoistMaybe
anywhere we are currently using something like MaybeT . pure
directly (like the place shown above)transformers >= 0.6
and remove our own definition of hoistMaybe
from Swarm.Util
.To add more, we can depend on transformers >= 0.6
once we drop support for GHC <= 9.4.8. See #1996 for context on why it so.
See code comment:
https://github.com/swarm-game/swarm/blob/6abe9c241b4a59d8707c3ed5db9924fb34649035/src/Swarm/TUI/Editor/Controller.hs#L60-L61
Hackage: https://hackage.haskell.org/package/transformers-0.6.1.1/docs/Control-Monad-Trans-Maybe.html#v:hoistMaybe