Malloy will write his own script for the film, Miranda's second screen adaptation of a stage musical.