2 ms·
Scheme has traditionally been a if not the major language for doing this, but it was established in this niche well before Haskell got big (Scheme had a decade
by hga 16y ago
Scheme has traditionally been a if not the major language for doing this, but it was established in this niche well before Haskell got big (Scheme had a decade and half head start on Haskell, three decades if you want to go back to the invention of LISP).
On the other hand there's a tradition of dogfooding in this area, one argument being that if your (general purpose, let's assume) language isn't good for building a compiler, what use is it? If you believe in your language....