There will be a cost. There are 200K workers in coal,do you think they will all find equivalent jobs in their towns after coal is gone ?
If they're working in that dirty environment anyway, they may as well cover it with solar panels and wind turbines. ; )