toolsetup:buildingapackagelocally
This is an old revision of the document!
Building a package locally from source using "stack"
- in the project folder type:
- command:
stack unpack random-1.2.1
- output:
Unpacked random (from Hackage) to C:\Qsync\SwEng\GitHub\JB\SandBox\Test6\random-1.2.1\
- …
- command:
cd random-1.2.1
- …
- command:
stack init
- output:
Looking for .cabal or package.yaml files to use to init the project. Using cabal packages: - .\ Selecting the best among 20 snapshots... * Matches https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/25.yaml Selected resolver: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/25.yaml Initialising configuration using resolver: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/25.yaml Total number of user packages considered: 1 Writing configuration to file: stack.yaml All done.
- …
- command:
cd ..
- …
- command:
stack build
- …
- command:
stack build
You could leave a comment if you were logged in.
toolsetup/buildingapackagelocally.1644957208.txt.gz · Last modified: (external edit)
