spec for analysing module definitions