Update cabal instructions

remotes/felixonmars/release
Lennart Spitzner 2019-09-02 13:58:08 +02:00
parent f289389879
commit c97f6dd559
1 changed files with 18 additions and 23 deletions

View File

@ -74,32 +74,27 @@ log the size of the input, but _not_ the full input/output of requests.)
nix-env -i ./result nix-env -i ./result
~~~ ~~~
- via `cabal v1-build` - via `cabal`
~~~~.sh Due to constant changes to the cabal UI, I have given up on making sure
# optionally: these instructions work before releases. Please do not expect these
# mkdir brittany instructions to be up-to-date; they may produce incomprehensible error
# cd brittany messages, they may be broken otherwise, they may work now but break with
# cabal sandbox init the next cabal release. Thanks for your understanding, and feel free to
cabal install brittany --bindir=$HOME/.cabal/bin # -w $PATH_TO_GHC_8_x open issues for any problems you encounter. -- lennart
~~~~
- via `cabal v2-install` If you are using cabal-3.0, using
`cabal install brittany --installdir=$HOME/.cabal/bin`
might work. Keep in mind that cabal merely puts a symlink to the "store"
into the installdir, so you have to re-install if you ever clean your
store. On cabal-2.4, try `cabal v2-install brittany`. On cabal-2.2 or
earlier you might be succesful using
```cabal new-build exe:brittany; cp `find dist-newstyle/ -name brittany -type f | xargs -x ls -t | head -n1` $HOME/.cabal/bin/```.
Alternatively, you can also use the v1-approach with sandboxes as
`cabal v1-sandbox init; cabal v1-install brittany --bindir=$HOME/.cabal/bin`.
~~~~.sh (TODO: These instructions are more confusing than helpful. I am inclined
cabal v2-install brittany to just remove them.)
~~~~
- via `cabal v2-build`, should v2-install not work:
~~~~.sh
cabal unpack brittany
cd brittany-0.11.0.0
# cabal new-configure -w $PATH_TO_GHC_8_x
cabal new-build exe:brittany
# and it should be safe to just copy the executable, e.g.
cp `find dist-newstyle/ -name brittany -type f | xargs -x ls -t | head -n1` $HOME/.cabal/bin/
~~~~
- on ArchLinux via [the brittany AUR package](https://aur.archlinux.org/packages/brittany/) - on ArchLinux via [the brittany AUR package](https://aur.archlinux.org/packages/brittany/)
using `aura`: using `aura`: