Skip to content

Derive Show instances for Sigma/SSigma when possible#634

Merged
RyanGlScott merged 1 commit into
masterfrom
derive-show-sigma-instances
May 20, 2026
Merged

Derive Show instances for Sigma/SSigma when possible#634
RyanGlScott merged 1 commit into
masterfrom
derive-show-sigma-instances

Conversation

@RyanGlScott

Copy link
Copy Markdown
Collaborator

On GHC 9.2 or later, it is possible to derive the Show instances for Sigma and SSigma, which is nice. Unfortunately, this doesn't work on pre-9.2 versions of GHC (see https://gitlab.haskell.org/ghc/ghc/-/issues/14860#note_454218), so some CPP is required.

While I'm in town, this adds some comments to make it clear that we intentionally want the behavior of derived Show instances. As such, this resolves #633.

On GHC 9.2 or later, it is possible to derive the `Show` instances for `Sigma`
and `SSigma`, which is nice. Unfortunately, this doesn't work on pre-9.2
versions of GHC (see
https://gitlab.haskell.org/ghc/ghc/-/issues/14860#note_454218), so some CPP is
required.

While I'm in town, this adds some comments to make it clear that we
intentionally want the behavior of derived `Show` instances. As such, this
resolves #633.
@RyanGlScott RyanGlScott self-assigned this May 20, 2026
@RyanGlScott RyanGlScott merged commit 8c9221c into master May 20, 2026
28 checks passed
@RyanGlScott RyanGlScott deleted the derive-show-sigma-instances branch May 20, 2026 11:48
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.

instance Show Show is imprecise.

1 participant