Haskell Stack and Version Management

I am new to Haskell and Stack. When creating a new project using stack new , which files should be checked on git (or any other VCS)? The entire catalog?

+5
source share
1 answer

You should check stack.yaml , your-project-name.cabal and Setup.hs as they are needed to create your project in a reproducible way. The src , app and test directories should also be fixed, since they are basically located where your source code will live (you can, of course, change the default project structure if you want to). On the other hand, you should ignore the .stack-work directory, as it contains assembly output and other volatile pieces of data.

+5
source

Source: https://habr.com/ru/post/1258498/


All Articles