stack2cabal: Convert stack projects to cabal.project + cabal.project.freeze

[ building, gpl, library, program ] [ Propose Tags ]

Convert stack.yaml / package.yaml to cabal.project / cabal.project.freeze/ *.cabal.


[Skip to Readme]
Versions [RSS] [faq] 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.11, 1.0.12
Change log CHANGELOG.md
Dependencies base (>=4.13 && <5.0), bytestring, Cabal (>=3.0 && <=3.4), containers, directory, exceptions (>=0.10.4 && <0.11), extra (>=1.7.8 && <1.8), filepath, filepattern (>=0.1.2 && <0.2), fuzzy-dates (>=0.1.1.2 && <0.2), hourglass (>=0.2.12 && <0.3), hpack (<=0.34.3), HsYAML (==0.2.*), http-client (>=0.6.4.1 && <0.7), http-client-tls (>=0.3.5.3 && <0.4), optparse-applicative (>=0.15.1.0 && <0.16), process (>=1.6.9.0), safe (>=0.3.19 && <0.4), stack2cabal, temporary (==1.3.*), text (>=1.2.3.1) [details]
License GPL-3.0-only
Copyright 2018 Tseen She, 2020 Julian Ospald
Author Tseen She
Maintainer Julian Ospald
Revised Revision 1 made by maerwald at 2021-03-10T20:47:49Z
Category Building
Bug tracker https://github.com/hasufell/stack2cabal/issues
Source repo head: git clone https://github.com/hasufell/stack2cabal.git
Uploaded by maerwald at 2020-10-23T20:37:57Z
Distributions NixOS:1.0.12
Executables stack2cabal
Downloads 3176 total (32 in the last 30 days)
Rating 1.75 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-10-23 [all 1 reports]

Modules

[Index] [Quick Jump]

Manual Flags

NameDescriptionDefault
ghcflags

Generate .ghc.flags files during compilation

Disabled
Automatic Flags
NameDescriptionDefault

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for stack2cabal-1.0.12

[back to package description]

Gitter Haskell CI Docker build Hackage version license

stack2cabal

This is forked of tseenshe/stack2cabal and the current hackage package.

Installation

Clone the repo and build with either cabal or stack or see the release page for binaries.

Docker

Docker pulls Docker stars Docker image size

docker pull hasufell/stack2cabal:latest

Usage

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

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

Notes

  • Hackage packages that are specified as git repositories in e.g. extra-deps might have a different version than the stack resolver. Therefore stack2cabal will download all repos and ignore their package names when generating cabal.project.freeze. This can take some time depending on your project. Pass --no-inspect-remotes to skip this.