> It is unfortunate coincidence, but Haskell sum types don't correspond to sums of spaces.
It depends on the perspective. Both are a form of coproduct https://en.wikipedia.org/wiki/Coproduct which forms a disjoint set for types (and sets and topological spaces) while forming a direct product for vector spaces. Confusingly, the vector space sum is a product of sets. (but you can see that it is an addition when you look at the resulting dimensions) The product operation for vector spaces is the tensor product.