3 ms·
write non-obvious code instead of automating writing obvious repetitive boilerplate one. That's fine and all but Haskell's a powerful enough language to abstra
by chongli 13y ago
write non-obvious code instead of automating writing obvious repetitive boilerplate one.
That's fine and all but Haskell's a powerful enough language to abstract away most boilerplate. What little remains can be taken care of with the TemplateHaskell extension. For a nice example of a library in Haskell that requires almost no boilerplate at all, check out XMonad. All of what you'd expect to be boilerplate is packed into a variable called defaultConfig.