Skip to content

Instantly share code, notes, and snippets.

@pierric
Last active March 17, 2018 07:11
Show Gist options
  • Save pierric/a42431b16e77771e3869e0ed2192e4c6 to your computer and use it in GitHub Desktop.
Save pierric/a42431b16e77771e3869e0ed2192e4c6 to your computer and use it in GitHub Desktop.
Call cabal init from stack env
jiasen@jiasen-home:~/Workspace/sandbox$ stack exec -- cabal init
cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with
Cabal. Use the flag --package-db to specify a package database (it can be used
multiple times).
jiasen@jiasen-home:~/Workspace/sandbox$ stack exec --no-ghc-package-path -- cabal init
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Package name? [default: sandbox] 
Package version? [default: 0.1.0.0] 
Please choose a license:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment