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

Refactor Jafar monad #4

Open
tsani opened this issue Oct 27, 2015 · 0 comments
Open

Refactor Jafar monad #4

tsani opened this issue Oct 27, 2015 · 0 comments

Comments

@tsani
Copy link
Contributor

tsani commented Oct 27, 2015

The Jafar monad never actually makes use of IO, so there's no reason to stack our transformers over the IO monad; we could stack them over the Identity monad. In fact, the refactoring should make a JafarT monad transformer that we can choose to stack over anything we like, and we ought to make a MonadJafar class whose methods are the particular operations enabled by including JafarT in a monad transformer stack. These methods should probably just be the haskell implementations of the high-level functions available in the Jafar EDSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant