Gamma-ray constraints on the Galactic halo