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 MonadReader and MonadState instances #24

Merged
merged 1 commit into from
Aug 30, 2021

Conversation

treeowl
Copy link
Contributor

@treeowl treeowl commented Aug 26, 2021

Closes #23.

@treeowl treeowl changed the title Add a MonadReader instance Add MonadReader and MonadState instances Aug 26, 2021
@treeowl treeowl force-pushed the reader branch 5 times, most recently from 3a32c9e to fc4a690 Compare August 26, 2021 19:51
* I've pretty well convinced myself that this instance obeys the `MonadReader`
  laws
  [proposed by Heinrich Apfelmus](haskell/mtl#5 (comment))
  and the ones
  [proposed by Li-yao Xia](haskell/mtl#5 (comment)),
  so I think it should be added.

* The `MonadState` instance is trivial.

Closes nikita-volkov#23.
@nikita-volkov nikita-volkov merged commit a240415 into nikita-volkov:master Aug 30, 2021
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.

Lift instances of MonadReader, etc.
2 participants