해키지(Hackage)[1]에 업로드한 패키지에 하독(Haddock)[2] 문서가 보이지 않을 때 다음과 같이 하면 된다.
먼저 다음 명령어로 하독 문서를 빌드한다.
cabal haddock --haddock-for-hackage
빌드된 압축 파일을 다음 명령어에 인자로 넣어 해키지에 업로드한다.
cabal upload --documentation --publish
이렇게 하면 이미 업로드된 패키지를 버전 변경(bump up)할 필요 없이 패키지에 누락된 하독 문서만 따로 업로드할 수 있다.
하스켈 패키지 저장소 ↩︎
하스켈 코드에 적은 주석 기반으로 HTML 문서를 만들어 주는 도구 ↩︎
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/0195d669-167f-71ea-923d-316bf7b0c108 on your instance and quote it. (Note that quoting is not supported in Mastodon.)