summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-10-28 14:58:43 +0000
committerhallgren <hallgren@chalmers.se>2014-10-28 14:58:43 +0000
commitf085b807ebe7fa1bb6f05e6324b3e90ef4f109e5 (patch)
tree9a9efd11b87b057a186390c23d101cf48d70eb55 /src/compiler/GF/Compile.hs
parentefedec187cef6e422c4dbcd50454dd2e29f1a3f8 (diff)
A couple of haddock documentation improvements
Diffstat (limited to 'src/compiler/GF/Compile.hs')
-rw-r--r--src/compiler/GF/Compile.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/GF/Compile.hs b/src/compiler/GF/Compile.hs
index 719cb756c..964165148 100644
--- a/src/compiler/GF/Compile.hs
+++ b/src/compiler/GF/Compile.hs
@@ -46,6 +46,10 @@ link opts (cnc,gr) =
srcAbsName gr cnc = err (const cnc) id $ abstractOfConcrete gr cnc
-- | Compile the given grammar files and everything they depend on.
+-- Compiled modules are stored in @.gfo@ files (unless the @-tags@ option is
+-- used, in which case tags files are produced instead).
+-- Existing @.gfo@ files are reused if they are up-to-date
+-- (unless the option @-src@ aka @-force-recomp@ is used).
batchCompile :: Options -> [FilePath] -> IOE (UTCTime,(ModuleName,Grammar))
batchCompile opts files = do
(gr,menv) <- foldM (compileModule opts) emptyCompileEnv files