Skip to content

Better support Domain types - #59

Merged
mzabani merged 3 commits into
masterfrom
better-support-domain-types
Oct 1, 2026
Merged

mzabani merged 3 commits into
masterfrom
better-support-domain-types

Conversation

@mzabani

@mzabani mzabani commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Fixes #57

TODO:

  • Make this new behaviour opt-in (with True as the default)? What if users don't want to accidentally decode more constrained types into broader Haskell types? Answer: no. Feels completely overkill. If a user requests such behaviour, I'll think it through. Users can still have their own newtypes that decode domain types, and there's a lot of value from that as it is.

@mzabani
mzabani force-pushed the better-support-domain-types branch from 76fa330 to f4f9581 Compare September 29, 2026 19:47
@mzabani
mzabani force-pushed the better-support-domain-types branch from f4f9581 to 8e7efbf Compare September 29, 2026 20:06
@mzabani
mzabani marked this pull request as ready for review September 30, 2026 19:16
Ideally we'd test arrays of domain types of every type.. but feels
overkill
@mzabani
mzabani merged commit 3df8f34 into master Oct 1, 2026
3 checks passed
@mzabani
mzabani deleted the better-support-domain-types branch October 1, 2026 20:08
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.

Support domain types in default FromPgField instances

1 participant