Skip to content

Instantly share code, notes, and snippets.

@cheecheeo
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheecheeo/9521607 to your computer and use it in GitHub Desktop.
Save cheecheeo/9521607 to your computer and use it in GitHub Desktop.
Thrift Haskell testing
#!/bin/bash -x
cabal sandbox hc-pkg unregister thrift
rm -rf ./tutorial/hs/dist/ ./tutorial/gen-hs &&
cabal sandbox init &&
pushd lib/hs &&
ln -sf ../../.cabal-sandbox . &&
ln -sf ../../cabal.sandbox.config . &&
popd &&
./bootstrap.sh &&
./configure &&
make -j 3 &&
pushd tutorial &&
../compiler/cpp/thrift -r --gen hs tutorial.thrift &&
pushd hs &&
ln -sf ../../.cabal-sandbox . &&
ln -sf ../../cabal.sandbox.config . &&
cabal install &&
popd &&
popd
#!/bin/bash -x
pushd .cabal-sandbox/bin
./HaskellServer &
trap "kill -9 $!" EXIT
until ./HaskellClient; do
sleep 0.1
done
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment