Haskell offline documentation?

前端 未结 9 1878
一整个雨季
一整个雨季 2021-01-30 01:13

What are the possibilities, if any, for getting offline docs for Haskell core libraries (and maybe more)?

Sometimes I take my laptop to the coffee-shop where there is no

9条回答
  •  伪装坚强ぢ
    2021-01-30 01:57

    Edit your ~/.cabal/config file. Look for the line (probably commented out) that says documentation: False. Change that line to documentation: True and uncomment it. Now when you build projects with cabal install documentation will also be built and saved locally.

    Look around a little more in that same config file and you'll find things options like doc-index-file, docdir, datadir, prefix, etc that allow you to configure where the documentation is stored.

提交回复
热议问题