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

Use fs2.dom.Event[F] and friends #172

Merged
merged 6 commits into from
Jan 30, 2023
Merged

Use fs2.dom.Event[F] and friends #172

merged 6 commits into from
Jan 30, 2023

Conversation

armanbilge
Copy link
Owner

Based on:

Admittedly, the codegen is a bit hacked, but meh 😅

The changes in #168 ended up being very helpful for this change, because now we actually need to map from dom.Event => fs2.dom.Event[F].

@armanbilge
Copy link
Owner Author

+492B +0.16% total files change

Not too bad!

@@ -146,37 +147,37 @@ private trait PropModifiers[F[_]](using F: Async[F]):
Modifier.forSignalResource[F, Any, OptionSignalResourceModifier[F, Any, Any], Option[Any]](
_.values) { (m, n) => setPropOption(n, m.name, m.encode) }

final class EventProp[F[_], E, A] private[calico] (key: String, pipe: Pipe[F, E, A]):
final class EventProp[F[_], A] private[calico] (key: String, pipe: Pipe[F, Any, A]):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bye E, hope we don't miss you.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I think it wasn't needed even before, but I only realized when I did this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think this is an orthogonal change. It would bother me because I like to pretend Any doesn't exist, but I see that we need that later on either way, because it helps us saving evil allocs ;)

Copy link
Collaborator

@2chilled 2chilled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try this

@armanbilge armanbilge merged commit 63d5d5f into main Jan 30, 2023
@armanbilge armanbilge deleted the pr/events branch January 30, 2023 19:36
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.

2 participants