in a first-class Haskell DSL. The benefit is that you can manipulate both at a kind of macro level, and benefit from Haskell's type system if you wish to make your JavaScript or CSS type-safe.
Maybe that's the key point Yesod use sass and CoffeeScript.