mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-30 01:24:29 +03:00
23 lines
442 B
Bash
23 lines
442 B
Bash
## -*- sh -*-
|
|
|
|
custom_retry() {
|
|
i=0
|
|
until "$@" ; do
|
|
if [ $i -ge 3 ]; then
|
|
break;
|
|
fi
|
|
sleep 1
|
|
i=$(expr $i + 1)
|
|
done
|
|
}
|
|
|
|
cabal_common() {
|
|
cat <<EOF
|
|
remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive
|
|
remote-repo-cache: ${HOME}/.cabal/packages
|
|
world-file: ${HOME}/.cabal/world
|
|
build-summary: ${HOME}/.cabal/logs/build.log
|
|
remote-build-reporting: anonymous
|
|
EOF
|
|
}
|