title: Error while creating test suites: "cannot satisfy -package-id"
body: <p>I'm attempting to create a test suite for my project, <code>HaskSplit</code> in my .cabal configuration:</p>
  
  <pre><code>-- Initial HaskSplit.cabal generated by cabal init.  For further 
  -- documentation, see http://haskell.org/cabal/users-guide/
  
  name:                HaskSplit
  version:             0.1.0.0
  synopsis:            Haskell Implementation of Shamir's Secret Sharing Scheme
  -- description:         
  license:             MIT
  license-file:        LICENSE
  author:              
  maintainer:          
  -- copyright:           
  category:            Security
  build-type:          Simple
  -- extra-source-files:  
  cabal-version:       &gt;=1.10
  
  executable HaskSplit
    main-is:             Main.hs
    default-language:    Haskell2010
    -- other-modules:       
    other-extensions:    TemplateHaskell, NoImplicitPrelude, RankNTypes, OverloadedStrings
    build-depends:       base &gt;=4.6 &amp;&amp; &lt;4.7,
                         resourcet &gt;=1.1 &amp;&amp; &lt;1.2,
                         bytestring &gt;=0.10 &amp;&amp; &lt;0.11,
                         conduit-extra &gt;=1.1 &amp;&amp; &lt;1.2,
                         vector &gt;=0.10 &amp;&amp; &lt;0.11,
                         conduit &gt;=1.1 &amp;&amp; &lt;1.2,
                         conduit-combinators &gt;=0.2 &amp;&amp; &lt;0.3,
                         mono-traversable &gt;=0.5 &amp;&amp; &lt;0.6,
                         safe &gt;=0.3 &amp;&amp; &lt;0.4,
                         transformers &gt;=0.3 &amp;&amp; &lt;0.4,
                         filepath &gt;= 1.3,
                         directory &gt;=1.2,
                         Glob &gt;= 0.7.4,
                         errors &gt;= 1.4,
                         optparse-applicative &gt;= 0.8
    hs-source-dirs:      src
    default-language:    Haskell2010
    ghc-options:         -Wall -fno-warn-orphans
  
  test-suite tests
    type:                exitcode-stdio-1.0
    default-language:    Haskell2010
    hs-source-dirs:      tests
    main-is:             Test.hs
    ghc-options:         -Wall -fno-warn-orphans
    build-depends:       base == 4.*,
                         QuickCheck &gt;=2.6 &amp;&amp; &lt;2.7,
                         test-framework-quickcheck2 &gt;= 0.3.0.3,
                         HaskSplit
  </code></pre>
  
  <p>Looking at an example test-suite setup <a href="https://github.com/tibbe/hashable/blob/master/hashable.cabal">here</a>, I noticed that they're specifying their own package as one of the build-depends module. Therefore I did the same, so that I can keep my <code>build-depends</code> list for my test-suite short.</p>
  
  <p>However when I try <code>cabal repl test:tests</code> in commandline, I'm getting the following error:</p>
  
  <pre><code>&lt;command line&gt;: cannot satisfy -package-id HaskSplit-0.1.0.0-inplace
  </code></pre>
  
  <p>I'm not too sure what I'm missing here, can anyone help me out? Is it cyclic dependencies happening around here? Or do I need to create a library instance of my package for the build-depends to work?</p>
  
  <p>Thanks!</p>