Foucault and the writing of history