title: Haskell Gloss: missing dependencies
body: <p>As uni assignment, I need to enhance a given Haskell framework with certain features. Since this framework uses the Gloss library, I installed Gloss using <code>cabal install gloss</code>. This gave me no errors, however, when trying to configure the Setup file of the framework (<code>runghc Setup configure</code>), I get the following error message:</p>
  
  <pre><code>Configuring lambda-wars-0.1.0.0...
  Setup: Encountered missing dependencies:
  gloss &gt;=1.8 &amp;&amp; &lt;1.10, random ==1.0.*, time &gt;=1.4 &amp;&amp; &lt;1.6
  </code></pre>
  
  <p>Trying to install these dependencies (e.g. <code>cabal install 'gloss &gt;=1.8 &amp;&amp; &lt;1.10</code>) gives me other error messages:</p>
  
  <pre><code>Resolving dependencies...
  cabal: Could not resolve dependencies:
  next goal: gloss (user goal)
  rejecting: gloss-1.10.2.3/installed-3mE..., gloss-1.10.2.3, gloss-1.10.2.2,
  gloss-1.10.2.1, gloss-1.10.1.1 (constraint from user target requires &gt;=1.8 &amp;&amp;
  &lt;1.10)
  trying: gloss-1.9.4.1
  next goal: base (dependency of gloss-1.9.4.1)
  rejecting: base-4.9.0.0/installed-4.9... (conflict: gloss =&gt; base==4.8.*)
  rejecting: base-4.9.0.0, base-4.8.2.0, base-4.8.1.0, base-4.8.0.0,
  base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1, base-4.6.0.0,
  base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0, base-4.3.1.0,
  base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0, base-4.1.0.0,
  base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from non-upgradeable
  package requires installed instance)
  Dependency tree exhaustively searched.
  </code></pre>
  
  <p>After some research, I figured that this means that my GHC is of a different version then what is required for the project. However, I can't seem to figure out how to actually solve this!</p>
  
  <p>I work on Mac OS X version 10.10.5. </p>