Skip to content

Support Generically and Generically1. - #73

Merged
RyanGlScott merged 1 commit into
RyanGlScott:masterfrom
torgeirsh:generically
Jul 10, 2026
Merged

Support Generically and Generically1.#73
RyanGlScott merged 1 commit into
RyanGlScott:masterfrom
torgeirsh:generically

Conversation

@torgeirsh

Copy link
Copy Markdown
Contributor

The base library contains newtype wrappers with the same purpose as FromGeneric since GHC 9.4. Supporting them simplifies deriving multiple instances generically, as you can e.g. derive "(ToJSON, TextShow) via Generically MyType".

@RyanGlScott RyanGlScott left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Well spotted. One suggestion inline.

Comment thread src/TextShow/Generic.hs

@RyanGlScott RyanGlScott left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks!

@RyanGlScott
RyanGlScott merged commit a81e3f3 into RyanGlScott:master Jul 10, 2026
14 checks passed
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