PURPOSE: This phase II trial is studying how well giving arsenic trioxide together with ascorbic acid, dexamethasone, and thalidomide works in treating patients with chronic idiopathic myelofibrosis or myelodysplastic or myeloproliferative disorders.