Minor documentation fixes.
authorThomas Schilling <nominolo@googlemail.com>
Wed, 22 Jul 2009 23:13:42 +0000 (23:13 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Wed, 22 Jul 2009 23:13:42 +0000 (23:13 +0000)
compiler/basicTypes/OccName.lhs
compiler/cmm/OptimizationFuel.hs
compiler/deSugar/Desugar.lhs

index 0736fea..b12a07f 100644 (file)
@@ -9,7 +9,7 @@
 -- GHC uses several kinds of name internally:
 --
 -- * 'OccName.OccName' represents names as strings with just a little more information:
---   the "namespace" that the name came from, e.g. the namespace of value, type constructors or
+--   the \"namespace\" that the name came from, e.g. the namespace of value, type constructors or
 --   data constructors
 --
 -- * 'RdrName.RdrName': see "RdrName#name_types"
index 83cb84e..175dcd0 100644 (file)
@@ -1,3 +1,9 @@
+-- | Optimisation fuel is used to control the amount of work the optimiser does.
+--
+-- Every optimisation step consumes a certain amount of fuel and stops when
+-- it runs out of fuel.  This can be used e.g. to debug optimiser bugs: Run
+-- the optimiser with varying amount of fuel to find out the exact number of
+-- steps where a bug is introduced in the output.
 module OptimizationFuel
     ( OptimizationFuel,  canRewriteWithFuel, maybeRewriteWithFuel, oneLessFuel
     , OptFuelState, initOptFuelState --, setTotalFuel
index 18f177a..a92f83c 100644 (file)
@@ -48,6 +48,7 @@ import Data.IORef
 %************************************************************************
 
 \begin{code}
+-- | Main entry point to the desugarer.
 deSugar :: HscEnv -> ModLocation -> TcGblEnv -> IO (Messages, Maybe ModGuts)
 -- Can modify PCS by faulting in more declarations