[Git][ghc/ghc][wip/temp-files] Two additional sorts in interface docs
Matthew Pickering (@mpickering)
gitlab at gitlab.haskell.org
Fri Aug 16 13:50:49 UTC 2024
Matthew Pickering pushed to branch wip/temp-files at Glasgow Haskell Compiler / GHC
Commits:
2650738c by Rodrigo Mesquita at 2024-08-16T14:50:19+01:00
Two additional sorts in interface docs
- - - - -
1 changed file:
- compiler/GHC/HsToCore/Docs.hs
Changes:
=====================================
compiler/GHC/HsToCore/Docs.hs
=====================================
@@ -160,7 +160,7 @@ mkDocStructureFromExportList mdl import_avails export_list =
(IEGroup _ level doc, _) -> DsiSectionHeading level (unLoc doc)
(IEDoc _ doc, _) -> DsiDocChunk (unLoc doc)
(IEDocNamed _ name, _) -> DsiNamedChunkRef name
- (_, avails) -> DsiExports (nubAvails avails)
+ (_, avails) -> DsiExports (sortAvails (nubAvails avails))
moduleExport :: ModuleName -- Alias
-> Avails
@@ -199,7 +199,7 @@ mkDocStructureFromDecls env all_exports decls =
map unLoc (sortLocated (docs ++ avails))
where
avails :: [Located DocStructureItem]
- avails = flip fmap all_exports $ \avail ->
+ avails = flip fmap (sortAvails all_exports) $ \avail ->
case M.lookup (availName avail) name_locs of
Just loc -> L loc (DsiExports [avail])
-- FIXME: This is just a workaround that we use when handling e.g.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2650738c7827bc239ec561d55e83027307ce3d75
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2650738c7827bc239ec561d55e83027307ce3d75
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240816/ddaf8328/attachment-0001.html>
More information about the ghc-commits
mailing list