![]() Stack will ignore package.yaml and use this file, if you edit it manually. My-cool-project.cabal: File generated from package.yaml by stack, for backwards compatibility. You should definitely edit this file’s initial few lines, since they describe your project, and you (its maintainer) in more detail. More on this in the section on dependencies. It lists dependencies of your project, the binaries to build, the libraries to link, runtime commands, build commands etc. Package.yaml: Your project’s build configuration. Contains instructions about where to download dependencies from, what sort of versions to select etc. Make sure you put a nice description of your project in this file. README.md: The main readme of your project. Haskell projects conventionally have project names comprising of one word, or two/three small words separated by hyphens. If you enter it, you may see the following folder structure. Once it is finished, you should see a new folder of the name my-cool-project. This is because stack is downloading its own version of GHC (so that it does not conflict with your system installations). ![]() This would take some time, the first time around. To install stack, you can refer to their website, which describes the following command (at the time of writing) for installation: Cabal has since added a similar functionality, but we will focus on stack in this article. Both provide similar functionality, but stack was the first to add a clean non-system-level dependency management. ![]() Stack was developed as a replacement for cabal, although it is almost completely backwards compatible. Many haskell projects added stack support, thanks to functional / reproduceable builds, and better dependency management.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |