Yesterday walking around a friends garden, I noticed a shallow box on stilts, I'm informed that the way to beat Carrot Fly is to grow them at least 30 ins above the ground, as they fly under that height.
I seem to remember being told a good trick is to surround the Carrots with a fine mesh screen of that height so that they fly over the top.