[commit: base] master: Make 'forever' inlinable (fixes Trac #5205) (ae10342)

Simon Peyton-Jones simonpj at microsoft.com
Fri Jun 10 22:08:04 CEST 2011


|  > libraries/base/GHC/ST.lhs:78:1:
|  >     You cannot SPECIALISE `forever'
|  >       because its definition has no INLINE/INLINABLE pragma
|  >       (or you compiled its defining module without -O)
|  > make[1]: *** [libraries/base/dist-install/doc/html/base/base.haddock] Error 1

Oh, wait.  This is something to do with *haddock* (I see in the last line) which I may have switched off because it takes so long.

Maybe haddock is compiling the base libraries without -O...  but somehow still looking at the SPECiALISE pragmas....

Yes that's it!   Without -O we should ignore SPECIALISE pragmas rather than complain that the exporting module doesn't have an INLINABLE pragma (it does, but the exporting module was compiled without -O).  Aha.  Patch coming

S



More information about the Cvs-libraries mailing list