diff options
author | Adam Sandberg Eriksson <adam@sandbergericsson.se> | 2020-01-07 21:16:36 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-01-12 21:28:09 -0500 |
commit | 49f83a0de12a7c02f4a6e99d26eaa362a373afa5 (patch) | |
tree | ae58f4ada1d6377ddcd8163a4191c679203771b0 /compiler/main | |
parent | 923a127205dd60147453f4420614efd1be29f070 (diff) | |
download | haskell-49f83a0de12a7c02f4a6e99d26eaa362a373afa5.tar.gz |
improve docs for HeaderInfo.getImports
[skip ci]
Diffstat (limited to 'compiler/main')
-rw-r--r-- | compiler/main/HeaderInfo.hs | 3 |
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 |