Skip to content

Commit ba07321

Browse files
committed
Update the changelog and the docs
1 parent 2890574 commit ba07321

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Other enhancements:
6565
i.e. `stack build --keep-tmp-files --ghc-options=-keep-tmp-files`.
6666
See [#3857](https://github.com/commercialhaskell/stack/issues/3857)
6767
* Improved error messages for snapshot parse exceptions
68+
* `stack unpack` now supports a `--to /target/directory` option to
69+
specify where to unpack the package into
6870

6971
Bug fixes:
7072

doc/GUIDE.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,13 @@ Unpacked yackage-0.8.0 to /var/home/harendra/yackage-0.8.0/
517517
cueball:~$ cd yackage-0.8.0/
518518
```
519519

520+
Note that you can also unpack to the directory of your liking instead of
521+
the current one by issueing:
522+
523+
```
524+
cueball:~$ stack unpack yackage-0.8.0 --to ~/work
525+
```
526+
520527
### stack init
521528
This new directory does not have a `stack.yaml` file, so we need to make one
522529
first. We could do it by hand, but let's be lazy instead with the `stack init`
@@ -1715,7 +1722,8 @@ users. Here's a quick rundown:
17151722
upstream packages available).
17161723
* `stack unpack` is a command we've already used quite a bit for examples, but
17171724
most users won't use it regularly. It does what you'd expect: downloads a
1718-
tarball and unpacks it.
1725+
tarball and unpacks it. It accept optional `--to` argument to specify
1726+
the destination directory.
17191727
* `stack sdist` generates an uploading tarball containing your package code
17201728
* `stack upload` uploads an sdist to Hackage. As of
17211729
version [1.1.0](https://docs.haskellstack.org/en/v1.1.0/ChangeLog/) stack

0 commit comments

Comments
 (0)