how to cabal-install so that :doc works?

Dear Cafe - what do I have to put in my global .cabal/config in order to make ghci's new :doc command https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html#gh... work after "cabal install <foo>"? I thought "documentation: True" should do it but I am invariably getting this: GHCi, version 8.6.2: http://www.haskell.org/ghc/ :? for help Prelude> import Ersatz Prelude Ersatz> :doc solveWith ghc: Can't find any documentation for Ersatz.Solver. This is probably because the module was compiled without '-haddock', but it's also possible that the module contains no documentation. I do have the .cabal/share/doc/x86_64-linux-ghc-8.6.2/ersatz-0.4.4/html directory. The :doc command seems to work for the libraries that come with ghc (documentation in /opt/ghc/ghc-8.6.2/share/doc/ghc-8.6.2/html/ ) - J.W.

i always set documentation: True in my ~/.cabal/config file On Tue, Nov 27, 2018 at 12:40 PM Johannes Waldmann < johannes.waldmann@htwk-leipzig.de> wrote:
Dear Cafe -
what do I have to put in my global .cabal/config in order to make ghci's new :doc command
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html#gh... work after "cabal install <foo>"?
I thought "documentation: True" should do it but I am invariably getting this:
GHCi, version 8.6.2: http://www.haskell.org/ghc/ :? for help Prelude> import Ersatz Prelude Ersatz> :doc solveWith ghc: Can't find any documentation for Ersatz.Solver. This is probably because the module was compiled without '-haddock', but it's also possible that the module contains no documentation.
I do have the .cabal/share/doc/x86_64-linux-ghc-8.6.2/ersatz-0.4.4/html directory.
The :doc command seems to work for the libraries that come with ghc (documentation in /opt/ghc/ghc-8.6.2/share/doc/ghc-8.6.2/html/ )
- J.W. _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

Hi Johannes, adding ghc-options: -haddock in ~/.cabal/config works for me. Cheers, Simon Am Di., 27. Nov. 2018 um 18:39 Uhr schrieb Johannes Waldmann < johannes.waldmann@htwk-leipzig.de>:
Dear Cafe -
what do I have to put in my global .cabal/config in order to make ghci's new :doc command
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html#gh... work after "cabal install <foo>"?
I thought "documentation: True" should do it but I am invariably getting this:
GHCi, version 8.6.2: http://www.haskell.org/ghc/ :? for help Prelude> import Ersatz Prelude Ersatz> :doc solveWith ghc: Can't find any documentation for Ersatz.Solver. This is probably because the module was compiled without '-haddock', but it's also possible that the module contains no documentation.
I do have the .cabal/share/doc/x86_64-linux-ghc-8.6.2/ersatz-0.4.4/html directory.
The :doc command seems to work for the libraries that come with ghc (documentation in /opt/ghc/ghc-8.6.2/share/doc/ghc-8.6.2/html/ )
- J.W. _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
participants (3)
-
Carter Schonwald
-
Johannes Waldmann
-
Simon Jakobi