Ms. Allen made her breakthrough with a stage adaptation of Muriel Spark 's novel '' The Prime of Miss Jean Brodie , '' about a romantic and frustrated Edinburgh schoolteacher who , for good or ill , has a magnetic influence on her students .