3 ms·
HKTs aren't even remotely necessary for basic functional programming. HKTs are very useful for e.g. typeclasses (used for Monad, Functor, etc. definitions) but
by wyager 12y ago
HKTs aren't even remotely necessary for basic functional programming.
HKTs are very useful for e.g. typeclasses (used for Monad, Functor, etc. definitions) but you don't need them. Strictly speaking, you don't even need types at all (even though they're great).
- innguest 12y agoThat's totally right which is why I never said anything to the contrary. You're crazy if you do FP without HKT though.
- seanmcdirmid 12y agoHigher-kinded types can definitely be overused. One has to be careful with higher-order anything, since it complicates reasoning about programs. (First-order is simple if you can get away with it)