This is forked of tseenshe/stack2cabal and the current hackage package.
Clone the repo and build with either cabal or stack or see the release page for binaries.
docker pull hasufell/stack2cabal:latest
To convert a stack.yaml
to cabal.project
simply cd to the project directory and run:
stack2cabal
This will also create a cabal.project.freeze
based on the stack resolver.
Also see stack2cabal --help
for further options.
docker run --rm \
-v /etc/passwd:/etc/passwd:ro \
-u `id -u`:`id -g` \
-v `pwd`:`pwd` \
-w `pwd` \
--tmpfs "$HOME/.cache" \
hasufell/stack2cabal:latest
- Hackage packages that are specified as git repositories in e.g.
extra-deps
might have a different version than the stack resolver. Thereforestack2cabal
will download all repos and ignore their package names when generatingcabal.project.freeze
. This can take some time depending on your project. Pass--no-inspect-remotes
to skip this.