Document 'loadModule'.
authorThomas Schilling <nominolo@googlemail.com>
Tue, 2 Dec 2008 15:48:00 +0000 (15:48 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Tue, 2 Dec 2008 15:48:00 +0000 (15:48 +0000)
compiler/main/GHC.hs

index 5d6f034..a5d82b8 100644 (file)
@@ -1120,7 +1120,13 @@ desugarModule tcm = do
 
 -- | Load a module.  Input doesn't need to be desugared.
 --
--- XXX: Describe usage.
+-- A module must be loaded before dependent modules can be typechecked.  This
+-- always includes generating a 'ModIface' and, depending on the
+-- 'DynFlags.hscTarget', may also include code generation.
+--
+-- This function will always cause recompilation and will always overwrite
+-- previous compilation results (potentially files on disk).
+--
 loadModule :: (TypecheckedMod mod, GhcMonad m) => mod -> m mod
 loadModule tcm = do
    let ms = modSummary tcm