Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Instances for StoreT, New MonadStore Instances, Rework MonadAsk Instance #14

Merged
merged 2 commits into from
Mar 1, 2022

Conversation

jhbertra
Copy link
Contributor

@jhbertra jhbertra commented Jan 18, 2022

Fixes #13

Summary of the changes

Add new instances for StoreT

  • MonadReader
  • MonadTell
  • MonadWriter
  • MonadState
  • MonadCont
  • MonadRec
  • MonadTrans
  • Distributive

Modify MonadAsk instance for StoreT to delegate to the base monad m instead of the wrapped ReaderT (HalogenStore a s)

  • MonadAsk - modified to delegate to base monad m with an instance of MonadAsk instead.

Add MonadStore instances for other monad transformers:

  • ContT
  • IdentityT
  • MaybeT
  • RWST
  • ReaderT
  • StateT
  • WriterT

@thomashoneyman thomashoneyman merged commit f31a39f into thomashoneyman:main Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StoreT instances don't work well with other transformers
2 participants