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?

  • How can I reduce the size of my repository?
  • Working in sync with SVN upstream
  • Code::Blocks git plugin
  • git - checkout single file under bare repository
  • How do I git-revert from the command line?
  • What is the difference between . and * in “git add”?
  • opposite of .gitignore file?
  • How to clone my own Laravel project considering vendor ignored
  • how to completely replace code in a git repository
  • Ignoring directories in Git repos on Windows
  • Retroactively sign git commits
  • Merging Git Flow Feature Branch after Hotfixes?
  • 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.