title: GHC could not find module but GHCi can
body: <p>I have previously installed the <code>tidal</code> package with <code>cabl install tidal</code></p>
  
  <p>When running <code>ghc Tidal.hs</code>: </p>
  
  <pre><code>Tidal.hs:4:1: error:
      Could not find module ‘Sound.Tidal.Context’
      There are files missing in the ‘tidal-0.9.6’ package,
      try running 'ghc-pkg check'.
      Locations searched:
        Sound/Tidal/Context.hs
        Sound/Tidal/Context.lhs
        Sound/Tidal/Context.hsig
        Sound/Tidal/Context.lhsig
        /home/chris/.cabal/lib/x86_64-linux-ghc-8.2.2/tidal-0.9.6-HlQOMGZHP8JDJBhFqbDzA/Sound/Tidal/Context.hi
    |
  4 | import Sound.Tidal.Context
  </code></pre>
  
  <p>Within the last filepath that file indeed does not exist but there are files named that end in <code>.dyn_hi</code>. So the full path to the file that does exist is:
  <code>/home/chris/.cabal/lib/x86_64-linux-ghc-8.2.2/tidal-0.9.6-HlQOMGZHP8JDJBhFqbDzA/Sound/Tidal/Context.dyn_hi</code></p>
  
  <p>What may be the cause of the error? I am able to import the module successfully within <code>ghci</code>.</p>