As a rule, you can say that if there is a chance that others will read the code you write, you should remain painstakingly describing each last step in your code, even if it means that you need to write ten more lines than a quick and funky solution.
If you write code only for yourself, then you can do whatever you want, but you need to remember that you probably would like to understand the code that you write when you find it on your hard drive after a long time.
Sealing can be useful in order to learn how to use the special Haskell functions and boasting (βI solved it in one line!β), But otherwise we must not forget how important the readability and maintainability are.
Another advantage of a longer code is that it is easier to debug if the code does not behave as expected, because it is similar to its logical structure (if formatted correctly) and, therefore, greatly facilitates error tracking.
source share