Conversation

This Tweet was deleted by the Tweet author. Learn more
it’s been a bit since I’ve done haskell stuff, but I feel like the haskell-y answer here is generic monad transformer stacks that different functions can pull what they need out of
1
1
Yeah, MTL is one approach to abstract this even more using constraints to pass the 'contexts'. There are other options, like algebraic effects that can be implemented using free monads, or ontop of monad transformers, or using delimited continuations like in Hasura's Eff library.
1