Unfortunately [there doesn't seem to be a good way to avoid duplicating the build-depends](http://stackoverflow.com/questions/10163604/how-to-reduce-duplication-in-the-build-depends-fields-of-a-cabal-file) between the library and the test section.