Where does documentation get installed with cabal?
Hello, I'm trying to find the API documentation for happstack 0.3 (online is for 0.2). So I did: cabal install happstack --reinstall --enable-documentation but I can't find it anywhere within ~/.cabal - where should I look? -- Colin Adams Preston Lancashire
Colin Paul Adams <colin@colina.demon.co.uk> writes:
I'm trying to find the API documentation for happstack 0.3 (online is for 0.2).
So I did:
cabal install happstack --reinstall --enable-documentation
but I can't find it anywhere within ~/.cabal - where should I look?
In most cases it is installed in ~/.cabal/share/doc/happstack*/html. Is there any files at that directory?
"Max" == Max Desyatov <explicitcall@googlemail.com> writes:
Max> Colin Paul Adams <colin@colina.demon.co.uk> writes: >> I'm trying to find the API documentation for happstack 0.3 >> (online is for 0.2). >> >> So I did: >> >> cabal install happstack --reinstall --enable-documentation >> >> but I can't find it anywhere within ~/.cabal - where should I >> look? Max> In most cases it is installed in Max> ~/.cabal/share/doc/happstack*/html. Is there any files at Max> that directory? There are now, but only a very few. And very little contents in them. It's as if the --reinstall were partial. -- Colin Adams Preston Lancashire
>> I'm trying to find the API documentation for happstack 0.3 >> (online is for 0.2).
[...]
Max> In most cases it is installed in Max> ~/.cabal/share/doc/happstack*/html. Is there any files at Max> that directory?
There are now, but only a very few. And very little contents in them. It's as if the --reinstall were partial.
Perhaps it's in /usr/local/share/doc. Mine seem to end up there, and I don't recall whether I specified that at any point. It's not in my ~/.cabal/config, but I am using the very helpful user-install: False documentation: True I suspect /usr/local/share/doc is the default for documentation in global installs, but I can't go verify that at the moment. Regards, John
On Thu, 2009-08-20 at 14:17 -0400, John Dorsey wrote:
Perhaps it's in /usr/local/share/doc. Mine seem to end up there, and I don't recall whether I specified that at any point.
It's not in my ~/.cabal/config, but I am using the very helpful user-install: False documentation: True
I suspect /usr/local/share/doc is the default for documentation in global installs, but I can't go verify that at the moment.
It's given further down in the ~/.cabal/config file. The commented out fields show the default values: install-dirs global -- prefix: /usr/local [..snip..] -- datadir: $prefix/share [..snip..] -- docdir: $datadir/doc/$pkgid hence "/usr/local/share/doc/$pkgid" Duncan
On Thu, Aug 20, 2009 at 8:58 AM, Colin Paul Adams<colin@colina.demon.co.uk> wrote:
Hello,
I'm trying to find the API documentation for happstack 0.3 (online is for 0.2).
So I did:
cabal install happstack --reinstall --enable-documentation
but I can't find it anywhere within ~/.cabal - where should I look?
Most of hasppstack functionality is not in the "happstack" package, it's in the happstack-* packages. So installing the happstack package with documentation won't really pull in much documentation at all. Antoine
"Antoine" == Antoine Latter <aslatter@gmail.com> writes:
Antoine> On Thu, Aug 20, 2009 at 8:58 AM, Colin Paul Antoine> Adams<colin@colina.demon.co.uk> wrote: >> Hello, >> >> I'm trying to find the API documentation for happstack 0.3 >> (online is for 0.2). >> >> So I did: >> >> cabal install happstack --reinstall --enable-documentation >> >> but I can't find it anywhere within ~/.cabal - where should I >> look? Antoine> Most of hasppstack functionality is not in the Antoine> "happstack" package, it's in the happstack-* packages. So Antoine> installing the happstack package with documentation won't Antoine> really pull in much documentation at all. Thanks. That was what I was missing. -- Colin Adams Preston Lancashire
participants (5)
-
Antoine Latter -
Colin Paul Adams -
Duncan Coutts -
John Dorsey -
Max Desyatov