Over time I've developed a messy system level Haskell installation that I'm not sure how to completely clean up. But for the most part this isn't of much concern as I simply use stack to manage per-project Haskell configurations. However as my project requirements diverge from my system Haskell setup, I wonder what the best way is to build and upload packages for Hackage.
Specifically (1) should I be using
stack exec -- cabal sdist
stack exec -- cabal upload
instead of simply
cabal sdist
cabal upload
and (2) should is there any reason to install a project version of cabal (with stack build cabal
?)
Or is there some better stack-based approach to building and distributing to Hackage that doesn't involve invoking cabal
directly?
stack sdist
andstack upload
which I believe should work without invokingcabal
directly. – ppbstack upload .
isn't seeing the credentials thatcabal upload
sees (I'm asked for my name, etc.). Any idea how to set those so I'm not asked each time? – oromestack sdist
andstack upload
constitute an answer. – orome