Fed up with GHC/cabal constantly assaulting me like Cato in a Pink Panther movie, here are some shell tests to give me some warning/reassurance about the dev setup on various machines. Thou Shalt Not Reimplement Autoconf, but perhaps a little cross-platform test suite focussed on my needs is a reasonable idea.
5 lines
209 B
Plaintext
5 lines
209 B
Plaintext
# ghc-pkg check (or the sandbox equivalent) reports no errors
|
|
[[ -e cabal.sandbox.config ]] && cabal sandbox hc-pkg check || ghc-pkg check
|
|
>>>2 !/(There are problems|The following packages are broken)/
|
|
>>>= 0
|