Re:An Introduction to Type Level Programming in Haskell
by jkhdigital on Thursday September 09, 2021 @09:26PM
(#28476757)
The formal notion of subtype seems to be getting some solid research attention; see e.g. https://drops.dagstuhl.de/opus/volltexte/2021/13888/pdf/LIPI...
Hopefully we see these ideas make their way into functional languages soon.
I've only seen type systems that work like this on numbers, and usually only a very few integers at that.