For each subgroup of GL 2 (Fp) or order divisible by p, generated by (pseudo-)reflections, we compute the ideals of stable and generalized invariants. These groups and these ideals are related to the cohomology of compact Lie groups, Kac-Moody groups and p-compact groups.