I'm interested in learning how GHC works. To this end, I'd like to print out large chunks of its source and pore over them. I would have hoped that the fact that GHC is written in the "literate programming" style would make it easy to get high-quality printouts; however, it doesn't seem to work. When I run lit2latex over ghc/compiler/*/*.lhs, I get many errors which say: fatal flex scanner internal error--end of buffer missed lit2latex: error(s) from prefilter pipe and the relevant source file is ignored. What I really want is a way to get a fairly good-looking DVI file consisting of the entire GHC source; in an ideal world, this would have page-numbered cross references in the margin and a good index. (I would then print out selected pages from this huge DVI file.) Even without these refinements, it seems like I ought to be able to do better than printing out the source (including the "literate" comments) in a fixed-width font. Carl Witty [EMAIL PROTECTED]
