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

yampa: module FRP.Yampa.Event exports internal function maybeToEvent #267

Closed
ivanperez-keera opened this issue Apr 29, 2023 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@ivanperez-keera
Copy link
Owner

The function FRP.Yampa.Event.maybeToEvent is labelled as internal, yet it is being exported by the module. The function is useful and is being used in the wild:

This is either an error in the implementation (the function should not be exported), or an error in the design (the function should be offered), or an error in the documentation (the comment and haddock section header indicator are incorrect).

ivanperez-keera added a commit that referenced this issue Oct 7, 2023
The function FRP.Yampa.Event.maybeToEvent is labelled as internal, yet
it is being exported by the module. The function is useful and is being
used in the wild, so removing it now would break existing applications.

This commit makes the function "officially" public. It changes the
comment stating that it is internal, and it moves it within the module
to a location that makes more sense in terms of explaining the API.
ivanperez-keera added a commit that referenced this issue Oct 7, 2023
A prior commit moved the function FRP.Yampa.Event.maybeToEvent within
its module to a location that made more sense in terms of explaining the
API.

This commit moves the accompanying test in yampa-test, so that the test
module remains consistent with the module it tests.
@ivanperez-keera ivanperez-keera self-assigned this Oct 7, 2023
@ivanperez-keera ivanperez-keera added this to the 0.14.5 milestone Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant