Skip to content

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

Merged
armanbilge merged 6 commits intomainfrom
pr/events
Jan 30, 2023
Merged

Use fs2.dom.Event[F] and friends#172
armanbilge merged 6 commits intomainfrom
pr/events

Conversation

@armanbilge
Copy link
Copy Markdown
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
Copy Markdown
Owner Author

+492B +0.16% total files change

Not too bad!

_.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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@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