haskell - Why doesn't stack add packages to the ghc package database? -


i've decided try giving stack shot. i've installed , used install latest version of ghc. i've used stack install packages packages not visible ghc , when list packages ghc-pkg see packages i've installed through stack not there. why this? misunderstanding purpose of stack?

stack never touches global packages database. uses layered database approach

  1. global database - untouched
  2. packages in stackage snapshot installed snapshot database
  3. other packages installed locally per project

thus instead of polluting global database, packages installed in snapshot database(s), packages can shared. packages in stackage snapshots compatible (i.e. compile together), don't run cabal hell.

you can use stack ghci or stack ghc run corresponding commands package database configured.

the more precise explanation in stack wiki


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -