--
You received this message because you are subscribed to the Google Groups "haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stac...@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/b685da1f-a83b-48c9-a57a-f7edc5249582%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Adam,
I was able to get what I need using your information. Thanks so much for your help!
#!/usr/bin/env bash
cabal update
mkdir -p deps
_project="$(echo *.cabal | cut -d '.' -f 1)"
pushd deps > /dev/null
cp ../$_project.cabal ./
projects() {
cabal install $_project --dry-run | grep hw- | grep -v "^${_project}-[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+$"
}
for x in $(projects); do
stack unpack $x
done
rm ./$_project.cabal
popd > /dev/null
Cheers,
-John