Skip to content

newtype derive Lazy instance #13

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

Merged
merged 1 commit into from
Mar 23, 2017
Merged

newtype derive Lazy instance #13

merged 1 commit into from
Mar 23, 2017

Conversation

matthewleon
Copy link
Contributor

No description provided.

@matthewleon
Copy link
Contributor Author

Not sure if there is a reason this wasn't in there. I suspect just an oversight? I'm quite possibly mistaken, but some monad transformers I've been working would benefit from this.

@matthewleon
Copy link
Contributor Author

Here is the sig of the function in question. Without this change, the basic monad (transformer applied to Identity) won't work:

genLazyList :: forall s m a. (Monad m, Z.Lazy (m (L.List a))) => GenT s m a -> GenT s m (L.List a)

@paf31
Copy link
Contributor

paf31 commented Mar 23, 2017

LGTM

@garyb
Copy link
Member

garyb commented Mar 23, 2017

👍

@garyb garyb merged commit 17aced5 into purescript:master Mar 23, 2017
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.

3 participants