by piinbinary · 5y ago · 0 comments
What about uninhabited types?
Or types where the constructor is not enough to determine the entire type?
e.g.
data MyType a b = MyConstructor { myField :: a }For uninhabited types there's a universe (empty), ways to construct (no ways), ways to work with (any way), and you can (tautologically) pick out values and put them in sets.
Constructors aren't first order meaningful (except in higher-kinded calculi) but for any concrete types `A` and `B`, `MyType A B` is a type with a universe of values (isomorphic to `A`'s universe), ways to construct and use (again, isomorphic to `A`s), and we can place them in sets.