Skip to content

Conversation

@raehik
Copy link
Contributor

@raehik raehik commented Sep 29, 2025

The Haddocks for module Rel8 describe how you can define sum types with all the relevant Rel8 plumbing, using an example. But the inner types use plain f:

data Thing f = ThingEmployer (Employer f) | ThingPotato (Potato f) | Nullary
    deriving stock Generic

data Employer f = Employer { employerId :: f Int32, employerName :: f Text}
-- ...

instead of Column f which erases the Result ~ Identity wrapper, for ergonomics. Probably it should be using that. (I can't find any other cases in the docs that don't wrap a column in Column.)

Doesn't impact the Haddock example that uses this data type.

@TeofilC
Copy link
Contributor

TeofilC commented Sep 29, 2025

Good spot!

@TeofilC TeofilC enabled auto-merge (squash) September 29, 2025 14:21
@TeofilC TeofilC merged commit 2f49519 into circuithub:master Sep 29, 2025
1 check 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