Skip to content

Conversation

@krame505
Copy link
Owner

@krame505 krame505 commented Jan 8, 2026

This pull request is based on the input port splitting branch on my fork of bsc, for the sake of reviewing without seeing the changes from B-Lang-org#729.

filterZeroWidthPorts _ _ = error "filterZeroWidthPorts: non-empty port names list"

-- Helper class to conditionally convert Bit 0 to ()
class NonEmptyBits n pb | n -> pb where
Copy link
Owner Author

Choose a reason for hiding this comment

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

@nanavati thinks this type class should have a different name. I'm unsure what to call it, though - maybeFilterEmptyBits? But that name sort of implies that we are filtering a tuple of Bit ns, while this actually deals with turning just a single Bit n into a ().

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.

1 participant