Re: Haddock strings in .hi files

2014-03-21 Thread Simon Marlow
Ok, I buy the argument that if we're already compiling everything, we shouldn't have to re-typecheck it all in Haddock. Of course if you're *not* already compiling everything, then the argument doesn't apply: Haddock does support generating documentation from source files without precompiling

Re: Haddock strings in .hi files

2014-03-21 Thread Edward Kmett
On Fri, Mar 21, 2014 at 7:38 AM, Simon Marlow marlo...@gmail.com wrote: Ok, I buy the argument that if we're already compiling everything, we shouldn't have to re-typecheck it all in Haddock. Of course if you're *not* already compiling everything, then the argument doesn't apply: Haddock does

RE: Haddock strings in .hi files

2014-03-20 Thread Simon Peyton Jones
| Marlow | Sent: 19 March 2014 11:40 | To: Mateusz Kowalczyk; ghc-devs@haskell.org | Subject: Re: Haddock strings in .hi files | | On 18/03/2014 18:20, Mateusz Kowalczyk wrote: | Hi all, | | I saw https://ghc.haskell.org/trac/ghc/ticket/5467 pop up in my inbox | and it reminded me of something I've

Re: Haddock strings in .hi files

2014-03-20 Thread Edward Kmett
; ghc-devs@haskell.org | Subject: Re: Haddock strings in .hi files | | On 18/03/2014 18:20, Mateusz Kowalczyk wrote: | Hi all, | | I saw https://ghc.haskell.org/trac/ghc/ticket/5467 pop up in my inbox | and it reminded me of something I've been wondering for a while: why | do we not store

Re: Haddock strings in .hi files

2014-03-20 Thread Edward Kmett
My knowledge of precisely how haddock works is somewhat fuzzy in that it arises from a series of discussions a couple of years back. My observation was mostly that I run 'cabal install' it goes through all the modules building my .hi files, etc. Then I run cabal haddock and it spends all that

Re: Haddock strings in .hi files

2014-03-20 Thread Malcolm Wallace
On 20 Mar 2014, at 16:41, Edward Kmett wrote: My observation was mostly that I run 'cabal install' it goes through all the modules building my .hi files, etc. Then I run cabal haddock and it spends all that time redoing the same work, just to go through and get at some information that we

Re: Haddock strings in .hi files

2014-03-19 Thread Simon Marlow
On 18/03/2014 18:20, Mateusz Kowalczyk wrote: Hi all, I saw https://ghc.haskell.org/trac/ghc/ticket/5467 pop up in my inbox and it reminded me of something I've been wondering for a while: why do we not store Haddock docstrings in the interface file? I think that if we did, we could do some

Re: Haddock strings in .hi files

2014-03-19 Thread Mateusz Kowalczyk
On 19/03/14 11:39, Simon Marlow wrote: On 18/03/2014 18:20, Mateusz Kowalczyk wrote: Hi all, I saw https://ghc.haskell.org/trac/ghc/ticket/5467 pop up in my inbox and it reminded me of something I've been wondering for a while: why do we not store Haddock docstrings in the interface file?

Haddock strings in .hi files

2014-03-18 Thread Mateusz Kowalczyk
Hi all, I saw https://ghc.haskell.org/trac/ghc/ticket/5467 pop up in my inbox and it reminded me of something I've been wondering for a while: why do we not store Haddock docstrings in the interface file? I think that if we did, we could do some great things: 1. Show docs in GHCi (I vaguely