title: What does Pantry snapshots solve?
body: <p>I've been assigned a task to speed up a Haskell project build time.
  As this is my first contact with building Haskell projects I had to spend couple of days reading, searching and trial and error builds.</p>
  
  <p>Switched from cabal to stack, now trying to figure out how to cache build dependencies using gitlab runner.</p>
  
  <p>I know that the deps are saved to <code>~/.stack</code> directory. But runner cannot cache directory outside the project.</p>
  
  <p>I can "hack" my way out of that but looking for more proper solution.</p>
  
  <p>In the Haskell docs I've found part where Pantry snapshots are mentioned. Are snapshots connected to dependency cache at all?</p>
  
  <p><a href="https://docs.haskellstack.org/en/stable/pantry/#snapshots" rel="nofollow noreferrer">https://docs.haskellstack.org/en/stable/pantry/#snapshots</a></p>