summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Sandberg Eriksson <adam@sandbergericsson.se>2020-01-07 21:16:36 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-01-12 21:28:09 -0500
commit49f83a0de12a7c02f4a6e99d26eaa362a373afa5 (patch)
treeae58f4ada1d6377ddcd8163a4191c679203771b0
parent923a127205dd60147453f4420614efd1be29f070 (diff)
downloadhaskell-49f83a0de12a7c02f4a6e99d26eaa362a373afa5.tar.gz
improve docs for HeaderInfo.getImports
[skip ci]
-rw-r--r--compiler/main/HeaderInfo.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main/HeaderInfo.hs b/compiler/main/HeaderInfo.hs
index 96361591e9..4bd8a0993d 100644
--- a/compiler/main/HeaderInfo.hs
+++ b/compiler/main/HeaderInfo.hs
@@ -64,7 +64,8 @@ getImports :: DynFlags
([(Maybe FastString, Located ModuleName)],
[(Maybe FastString, Located ModuleName)],
Located ModuleName))
- -- ^ The source imports, normal imports, and the module name.
+ -- ^ The source imports and normal imports (with optional package
+ -- names from -XPackageImports), and the module name.
getImports dflags buf filename source_filename = do
let loc = mkRealSrcLoc (mkFastString filename) 1 1
case unP parseHeader (mkPState dflags buf loc) of