Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Created June 14, 2022 06:19
Show Gist options
  • Save chris-martin/6a80798ee5bae94b8c06e170f336e31c to your computer and use it in GitHub Desktop.
Save chris-martin/6a80798ee5bae94b8c06e170f336e31c to your computer and use it in GitHub Desktop.
dir=$(mktemp -d dist-docs.XXXXXX)
cabal configure --builddir="$dir"
cabal haddock --builddir="$dir" --haddock-for-hackage --haddock-option=--hyperlinked-source
cabal upload --publish -d $dir/*-docs.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment