Factor out "module Name where" into its own clause in the grammar.