Skip to content
Snippets Groups Projects
Commit c1f81b38 authored by Matthew Farkas-Dyck's avatar Matthew Farkas-Dyck Committed by Marge Bot
Browse files

Scrub partiality about `NewOrData`.

Rather than a list of constructors and a `NewOrData` flag, we define `data DataDefnCons a = NewTypeCon a | DataTypeCons [a]`, which enforces a newtype to have exactly one constructor.

Closes #22070.

Bump haddock submodule.
parent 75746594
No related branches found
No related tags found
Loading
Showing
with 222 additions and 181 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment