Trying to solve a stack error: library must match >=0.10, but the stack configuration has no specified version (latest applicable is 0.10)
<p>I'm trying to use <code>brick</code> in a stack project.</p>

<p>Here's the error output:</p>

<blockquote>
  <p>brick must match >=0.10, but the stack configuration has no specified version (latest applicable is 0.10)</p>
</blockquote>

<p>It suggests:</p>

<blockquote>
  <p>Recommended action: try adding the following to your extra-deps in /my-project-path/stack.yaml:
  - brick-0.10</p>
</blockquote>

<p>Which I have done, but it doesn't help: same error message.</p>

<pre><code>packages:
- '.'
# Dependency packages to be pulled from upstream that are not in the resolver
# (e.g., acme-missiles-0.3)
extra-deps: 
- brick-0.10
</code></pre>

<p>Then launching <code>stack solver</code> gives us:</p>

<blockquote>
  <p>Using resolver: lts-7.1
  Using compiler: ghc-8.0.1
  Asking cabal to calculate a build plan...
  Trying with packages from lts-7.1 as hard constraints...
  Could not parse cabal-install errors:</p>
</blockquote>

<pre><code>&gt;&gt;&gt;&gt; Cabal errors begin
cabal: failed to parse output of 'ghc-pkg dump'
&lt;&lt;&lt;&lt; Cabal errors end
</code></pre>

<p>What is strange is that the <code>stack.yaml</code> was originally pointing to resolver <code>lts-6.2</code>, but <code>stack solver</code> used <code>lts-7.1</code> all the same.</p>

<p>My first two questions are:</p>

<ul>
<li>I'm wondering whether my <code>stack.yaml</code> file is read at all ?</li>
<li>Is there something I can do to know what <code>ghc-pkg dump</code> failed exactly ?</li>
</ul>

<p>And finally, do you know what could solve the issue ?</p>