Skip to content

Instantly share code, notes, and snippets.

@kozross
Created January 24, 2021 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kozross/3e780d55d3eb177d3525e9b7d5e9a89f to your computer and use it in GitHub Desktop.
Save kozross/3e780d55d3eb177d3525e9b7d5e9a89f to your computer and use it in GitHub Desktop.
runMyStack :: MaybeT (ReaderT Env IO) a -> Env -> IO (Maybe a)
runMyStack comp env = case runMaybeT comp of
comp' -> runReaderT comp' env
-- Or
runMyStack comp env = runReaderT (runMaybeT comp) env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment