diff --git a/upload-docs b/upload-docs new file mode 100755 index 0000000..e3c9c40 --- /dev/null +++ b/upload-docs @@ -0,0 +1,10 @@ +#!/bin/sh +set -ex + +dir=$(mktemp -d dist-docs.XXXXXX) +trap 'rm -r "$dir"' EXIT + +# assumes cabal 2.4 or later +cabal haddock --builddir="$dir" --haddock-for-hackage --enable-documentation + +cabal upload --documentation $@ $dir/*-docs.tar.gz \ No newline at end of file