2 ms·
The friendliest way to write it is to simply not and let the compiler infer it.
by steveklabnik 13y ago
The friendliest way to write it is to simply not and let the compiler infer it.
- AnimalMuppet 13y agoThat is in fact the best way... until it's not. If I understand correctly (and I may not), there are times when you have to write it.
- dbaupp 13y agoYou're correct; at the moment function signatures have to be written in full. (This may be relaxed slightly in future, that said, it's very very unlikely to be loosened to full Haskell-style whole-program inference.)