Understanding Haskell's stack program and the resolver and LTS version -


i trying understand how use stack , stackage.org. when first installed , used it, stackage.org @ lts-3.8 (the "resolver"). since then, stackage.org has lts-3.11.

first, i'd confirm means. stackage repository of packages in which, specific lts version (say 3.8), packages have been verified work together. packages of lts-3.8 work together, , packages of lts-3.11 work together. moving on ...

when run stack new projectname, stack tells me:

checking against build plan lts-3.8 selected resolver: lts-3.8 

does mean project has been set use packages , versions verified under lts-3.8?

if want start new project , want use latest lts version new project, how tell stack default?

what if want "upgrade" older project use new lts version?

does mean project has been set use packages , versions verified under lts-3.8?

exactly. (and if ever need packages not included in lts 3.8 set can specify them through extra-deps section of stack.yaml. stack grab them hackage , install them separately project, without affecting lts snapshot or other projects.)

if want start new project , want use latest lts version new project, how tell stack default?

use e.g. stack new projectname --resolver=lts-3.11 set resolver new project. stack defaults recent lts snapshot using, , once have project latest lts future new projects follow suit.

what if want "upgrade" older project use new lts version?

change resolver field in stack.yaml file. change take effect next time build project.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -