the methods in `CabalUtils` are using some methods of the formula — `prefix` and `buildpath` — that are not accessible when the methods are made static, so I had to pass them as parameter.

Also I'm not sure with your previous comment where I should put this code. Do you want it in `Library/Homebrew/language/haskell.rb`?