lazy primop
Simon Peyton-Jones
simonpj at microsoft.com
Wed May 27 03:36:14 EDT 2009
| >
| > 2. Secondly, I can't see GHC.Base documented in
| > http://www.haskell.org/ghc/docs/latest/html/libraries/
| > Why not? It's rather important!
|
| In looking at this, I found that the new build system wasn't actually
| haddocking anything; now fixed.
|
| GHC.Base is deliberately not in the documentation: it has a
| {-# OPTIONS_HADDOCK hide #-}
| pragma. Instead, everything that it exports should be documented by a
| module that re-exports it. In particular, lazy is here:
| http://www.haskell.org/ghc/docs/latest/html/libraries/base/GHC-
| Exts.html#v%3Alazy
Oh, ok. What's the fastest way to find things like this. I find that the index
http://www.haskell.org/ghc/docs/latest/html/libraries/doc-index.html
takes minutes to load -- and then the search box takes multiple seconds to respond to each keystroke, which is jolly annoying.
(The old index just displayed a list of first letters, fast, and the functions beginning with a particular letter loaded reasonably quickly. I'm not saying let's go back, but it was a lot faster.)
| > 1. prelude/primops.txt.pp says that 'lazy' is a "pseudoop". But in fact it
| isn't exported by GHC.Prim at all; rather by GHC.Base.
| >
| > So I suspect that all the commentary in primops.txt.pp belongs in GHC.Base.
|
| Isn't the better fix to just move lazy into GHC.Prim? It doesn't make
| sense to me for it to be in GHC.Base while seq, for example, is in
| GHC.Prim.
Well 'lazy' really is defined in GHC.Base, whereas 'seq' really isn't. The definition of
'seq' is *only* given in MkId.
I'm going to add some comments in MkId.
Where does the new build system put the library and user-guide docs for the inplace build?
Simon
More information about the Cvs-ghc
mailing list