title: How to reduce duplication in the build-depends fields of a .cabal file?
body: <p>Here's a .cabal file:</p>
  
  <pre><code>Name:                myprogram
  Version:             0.1
  -- blah blah blah
  Cabal-version:       &gt;=1.9.2
  
  Executable myprogram
    HS-source-dirs:       src
    Main-is:              Main.hs
    Build-depends:        attoparsec == 0.10.*,
                          base == 4.3.*,
                          -- long long list of packages
  
  Test-Suite test
    HS-source-dirs:       test, src
    Type:                 exitcode-stdio-1.0
    Main-is:              Main.hs
    Build-depends:        attoparsec == 0.10.*,
                          base == 4.3.*,
                          -- long long list of packages
                          QuickCheck == 2.4.*
  </code></pre>
  
  <p>Is there any way I can replace the long list of build-depends packages for the test suite with "same as for the executable, plus QuickCheck"?</p>
  
  <p><strong>Edit:</strong> version information.</p>
  
  <ul>
  <li>cabal-dev 0.9</li>
  <li>cabal-install 0.10.2</li>
  <li>Cabal library 1.10.2.0</li>
  <li>GHC 7.0.4</li>
  <li>Haskell Platform 2011.4.0.0</li>
  </ul>