A chromatic Whitehead theorem