We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would it make sense to have a map : (a -> b) -> Body a -> Body b function?
map : (a -> b) -> Body a -> Body b
Inspiration comes from classic TEA, Html.map, Cmd.map, etc.
Html.map
Cmd.map
I would like to define some bodies outside the main module but it is hard because there are bind by the same data.
data
It looks trivial to implement, but can only be done at package level since the Body type is opaque.
Body
The text was updated successfully, but these errors were encountered:
It could also allow sharing some bodies code between packages.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Would it make sense to have a
map : (a -> b) -> Body a -> Body b
function?Inspiration comes from classic TEA,
Html.map
,Cmd.map
, etc.I would like to define some bodies outside the main module but it is hard because there are bind by the same
data
.It looks trivial to implement, but can only be done at package level since the
Body
type is opaque.The text was updated successfully, but these errors were encountered: