Christina Hendricks has been cast in “Hap and Leonard,” SundanceTV’s upcoming scripted series based on the characters in author Joe Lansdale’s novels, novellas and short stories.

The series centers on friends Hap Collins, a white working-class ex-con played by James Purefoy, and Leonard Pine, an openly gay, black Vietnam vet with anger issues played by Michael Kenneth Williams. Together, the duo fight to stay on the right side of the law in 1980s East Texas. Hendricks will play Hap’s ex-wife Trudy, who resurfaces after two years to make Hap an offer he can’t refuse.

“Hap and Leonard’s” six one-hour episodes will air in early 2016 on SundanceTV. It is created by director-writer Jim Mickle and writer Nick Damici and is produced by Sundance Studios. Nick Shumaker and Jeremy Platt exec produce; co-executive producers are Lansdale and Lowell Northrop. Linda Moran is producing. Bill Sage and Jimmi Simpson also star.

Hendricks, who is represented by LINK management and ICM Partners, is best known for her Emmy-nominated role as Joan (Holloway) Harris on AMC’s “Mad Men.” She also appears in the film adaptation of the Gillian Flynn novel “Dark Places.” Hendricks recently vacated a role in Cameron Crowe’s Showtime pilot “Roadies.”