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

[servant] Generalize type of Servant.Types.SourceT.source to any foldable #1593

Merged
merged 3 commits into from Apr 11, 2023

Conversation

Daniel-Diaz
Copy link
Contributor

I didn't see any reason to restrict this function to only work on lists, so I changed the type signature from

source :: [a] -> SourceT m a

to

source :: Foldable f => f a -> SourceT m a

@Daniel-Diaz Daniel-Diaz changed the title Generalize type of Servant.Types.SourceT.source to any foldable [servant] Generalize type of Servant.Types.SourceT.source to any foldable Jun 4, 2022
@jkarni jkarni merged commit 4244ae5 into haskell-servant:master Apr 11, 2023
@Daniel-Diaz
Copy link
Contributor Author

Thanks for the merge!

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.

None yet

3 participants