A visible-light-mediated synthesis of carbazoles.