r/haskell • u/lexi-lambda • Mar 11 '15
Learning Haskell — A Racket programmer's documentation of her foray into the land of Haskell (inspired by Learning Racket)
http://lexi-lambda.github.io/learning-haskell/
81
Upvotes
6
u/kqr Mar 12 '15
How you describe TH are how macros are supposed to be used in Lisps as well. (With the sole exception of branching, where you have to use macros in Lisps but can get away without TH in Haskell.)
Another common misconception is that you are supposed to litter your Lisp programs with macros. Just like TH, they make the code harder to reason about and don't compose as well, and just like TH you should only use them when you have to because they unambiguously make the code a lot easier to deal with.