3 ms·
Yeah, type aliases can be really useful for some kinds of type documentation. But they seem a bit on the heavy side for one-off things like the exp and map exa
by mightybyte 13y ago
Yeah, type aliases can be really useful for some kinds of type documentation. But they seem a bit on the heavy side for one-off things like the exp and map examples.
- dllthomas 13y agoI agree that it doesn't make sense for exp or map, but not because they are one-off; rather because they are already clear enough that it's not going to add much. For map in particular what are you going to rename? You can name unbound parameters without a newtype: map :: (input -> output) -> [input] -> [output] might add a bit; map :: MapFunction a b -> [a] -> [b] takes more away than it adds I think.