Sky Sports understands that West Ham United have agreed a deal with Marseille for France international midfielder Alou Diarra.