title: Where do I find (and run) an executable compiled with a cabal sandbox?
body: <p>I'm compiling my <code>myProgram.lhs</code> with the use of a cabal sandbox (set up with <code>cabal sandbox init</code>). I'm using a simplest approach I've come up with:</p>
  
  <pre><code>cabal exec -- ghc myProgram
  </code></pre>
  
  <p>or (having a rule in <code>Makefile</code>)</p>
  
  <pre><code>cabal exec -- make myProgram
  </code></pre>
  
  <p>After that, in my source directory, appears <code>myProgram.o</code>, but not the executable <code>myProgram</code>.</p>
  
  <p>How do I run the resulting program?</p>
  
  <pre><code>cabal exec -- ./myProgram
  </code></pre>
  
  <p>doesn't work.</p>
  
  <p>Now, I've come up with a simplest approach to test it:</p>
  
  <pre><code>cabal exec -- runghc myProgram.lhs
  </code></pre>
  
  <p>but I don't like this.</p>
  
  <p>Do you know where the resulting executable is?</p>
  
  <p>(I haven't created any cabal file for my project yet. I simply used to compile the program with bare <code>ghc</code> and test it, then--when I needed custom dependencies--I set up the cabal sanbox and installed the dependencies manually there.)</p>