Haskell stack and version control

I’m new to Haskell and Stack. When creating a new project using stack new which files should be checked in to git (or any other VCS)? The whole dir?

  • Syncing a Git repository with an SVN repository
  • How is Git Distributed Source Code Management?
  • git-svn — Why are other branches' commits mixed in with trunk commits on master?
  • Signed powershell script not signed after source control
  • git - project evolution, branch or new repo?
  • application version indication with git?
  • After converting repository from hg to git, how to migrate additional changesets?
  • Git track an upstream branch that is not origin
  • One Solution collect form web for “Haskell stack and version control”

    You should check in stack.yaml, your-project-name.cabal and Setup.hs, as they are necessary for building your project in a reproducible way. The src, app and test directories should also be committed, as they in principle are where your source code will live (you can of course rearrange the structure of the default project if you wish to do so). On the other hand, you should ignore the .stack-work directory, as it contains the build output and other volatile pieces of data.

    Git Baby is a git and github fan, let's start git clone.