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?

  • parsing git log output, preferably as xml
  • Git produces “BUG: There are unmerged index entries”
  • How to display metainformation about single commit in git
  • How to apply a very old patch in Git?
  • git recover single file that was deleted during a merge
  • Why GitHub suggest “prefix your version names with the letter v?”
  • How do i make a non-bare git repository into a bare one?
  • How can I make it so git rejects pushing code that won't compile?
  • Take only part of a git commit, push to github
  • git checkout -f master VS git reset
  • Git: new branch not getting pushed
  • what are possible ways of referring to a git stash?
  • 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.