title: How to make .gitignore ignore compiled files with no extension?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5711120/gitignore-without-binary-files">gitignore without binary files</a>  </p>
  </blockquote>
  
  
  
  <p>Edit: Dupe of <a href="https://stackoverflow.com/questions/5711120/gitignore-without-binary-files">gitignore without binary files</a></p>
  
  <p>When you compile, say, a Haskell file, (<code>test.hs</code>), using <code>ghc --make test.hs</code>, the result is <code>test.hi</code> and <code>test</code>.  I only want to add and commit the source <code>test.hs</code>, while keeping <code>test.hi</code> and <code>test</code> out of the repository but in the same directory as the source file.  <code>test</code> is the problem, how do I specify to .gitignore to ignore a compiled file with no extension?</p>