aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/src
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/src')
-rw-r--r--bootstrap/src/BuildModel.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap/src/BuildModel.hs b/bootstrap/src/BuildModel.hs
index f784624..9a9866a 100644
--- a/bootstrap/src/BuildModel.hs
+++ b/bootstrap/src/BuildModel.hs
@@ -52,6 +52,8 @@ data Source =
, moduleProducesSmod :: Bool
}
| Submodule
+ { submoduleSourceFileName :: FilePath
+ }
processRawSource :: RawSource -> Source
processRawSource rawSource =
@@ -74,7 +76,7 @@ processRawSource rawSource =
, moduleProducesSmod = hasModuleSubprogramDeclaration parsedContents
}
else if hasSubmoduleDeclaration parsedContents
- then Submodule
+ then Submodule { submoduleSourceFileName = sourceFileName }
else undefined
pathSeparatorsToUnderscores :: FilePath -> FilePath