[project @ 2005-01-14 17:57:41 by simonmar]
authorsimonmar <unknown>
Fri, 14 Jan 2005 17:57:55 +0000 (17:57 +0000)
committersimonmar <unknown>
Fri, 14 Jan 2005 17:57:55 +0000 (17:57 +0000)
commitc464eda3010831d8e5fb97c950aef953a1217db6
treeb702d7e7c5e19317c14ba23f885ff59bdb38b13f
parentc7333e5dcef5345b1ac1a7e382aeda8bdbfa9c16
[project @ 2005-01-14 17:57:41 by simonmar]
HEADS UP!  You now need to use an up to date Happy from CVS to build
GHC.  Happy version 1.15 will be released shortly.

Replace the slow hacked up String-based GetImports with one based on
the real Haskell parser.  This requires a new addition to Happy to
support parsing partial files.  We now avoid reading each source file
off the disk twice: once to get its module name and imports, and again
to parse it.  Instead we just slurp it once, and cache the StringBuffer.

This should result in improved startup times for ghc --make,
especially when there are lots of source files.
ghc/compiler/basicTypes/Module.lhs
ghc/compiler/compMan/CompManager.lhs
ghc/compiler/main/DriverMkDepend.hs
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/Finder.lhs
ghc/compiler/main/GetImports.hs
ghc/compiler/main/HscMain.lhs
ghc/compiler/parser/Parser.y.pp