The Affair's Ruth Wilson is to star opposite Irish actor Daryl McCormack (Good Luck to You, Leo Grande, Peaky Blinders) in the BBC's gothic thriller The Woman in the Wall, a series that will "examine the legacy of one of Ireland's most shocking scandals - the inhumane institutions known as 'The Magdalene Laundries'".

Written and created by London-born Irish writer Joe Murtagh (Gangs of London, Calm with Horses), The Woman in the Wall is a BBC One co-production with US network Showtime.

Announcing the series, the BBC said: "Lorna Brady (Wilson) is a woman from the small, fictional town of Kilkinure, who wakes one morning to find a corpse in her house. Chillingly, Lorna has no idea who the dead woman is or if she herself might be responsible for the apparent murder...

"That's because Lorna has long suffered from extreme bouts of sleepwalking, understood to have manifested around the time she was ripped from her life at the age of 15 and incarcerated in the Kilkinure Convent."

"Unluckily for Lorna, the extremely ambitious, albeit elusive Detective Colman Akande (McCormack) is now also on her tail for a crime that is seemingly unrelated to the dead woman she's discovered in her house," the BBC continues.

"Colman quickly rose through the ranks of the Garda Síochána thanks to his natural aptitude for the job. He possesses a dark and sometimes scathing wit, but there is a quiet sadness to him that even he doesn't understand, and he's hiding his own secrets from the world..."

Daryl McCormack - will play Detective Colman Akande in The Woman in the Wall

Writer-creator Murtagh said of his series: "My family is from Mayo, the county in which the fictional Kilkinure is set, and it deeply frustrates and saddens me that it feels so few people have heard of the Laundries that existed across Ireland.

"I hope that by making something that has the familiarity of a genre piece we are able to shed some light on the awful things that occurred within these kind of institutions and introduce this history to the wider public, so that nothing like it may ever happen again."

Murtagh will also join The Woman in The Wall co-lead Wilson as one of the executive producers of the series.

"Lorna Brady is a complex and fascinating character, and I'm thrilled to help bring her to life," said His Dark Materials and Luther star Wilson.

"In The Woman in the Wall, Joe has created both an enthralling gothic thriller and a moving examination of the legacy of The Magdalene Laundries. It's a privilege to bring this story to screens."

Click here for more television news.