title: Haskell stack - allow-newer enabled and won't turn off?
body: <p>According to <a href="https://docs.haskellstack.org/en/stable/yaml_configuration/#allow-newer" rel="nofollow noreferrer">the docs</a>, <code>allow-newer</code> is an option in <code>package.yaml</code> which tells stack to ignore bounds on dependency versions specified in the <code>cabal</code> file. Despite the fact that it should be disabled by default, I get the following weird error message when building:</p>
  
  <pre><code>WARNING: Ignoring &lt;Project name&gt;'s bounds on Persistence (&gt;2.0); using Persistence-2.0.
  Reason: allow-newer enabled.
  WARNING: Ignoring &lt;Project name&gt;'s bounds on binary (&gt;0.8.6.0); using binary-0.8.6.0.
  Reason: allow-newer enabled.
  </code></pre>
  
  <p>To try to fix this I added <code>allow-newer: false</code> to <code>package.yaml</code>, but that only resulted in</p>
  
  <pre><code>/path/to/project/package.yaml: Ignoring unrecognized field $.allow-newer
  </code></pre>
  
  <p>as well as the other error messages mentioned above.</p>
  
  <p>What could be going wrong here? I'm using <code>stack</code> version 2.1.3.</p>
  
  <p><code>stack.yaml</code> (comments ommitted):</p>
  
  <pre><code>resolver: lts-14.0
  
  packages:
  - .
  
  extra-deps:
  - Persistence-2.0@sha256:997664d1805105f10202b6148cb3cfd57fa1e298be5b21e9fa97108bfb8f7918,2093
  </code></pre>