Is it possible to list the dependencies in the base class?
These two lines are not enough — I had to replicate them in all the CabalFormula subclasses.