This repository was archived by the owner on Aug 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ var App = createClass({
82
82
threshold : 0.4 ,
83
83
caseSensitive : true ,
84
84
includeScore : true ,
85
- keys : [ "name" ]
85
+ tokenize : true ,
86
+ keys : [ "name" , "module" ]
86
87
} ) ,
87
88
moduleResults : [ ]
88
89
} ) ;
Original file line number Diff line number Diff line change @@ -374,19 +374,22 @@ ppJsonIndex odir maybe_source_url maybe_wiki_url unicode qual_opt ifaces = do
374
374
mdl = ifaceMod iface
375
375
376
376
goExport :: Module -> Qualification -> ExportItem DocName -> [Value ]
377
- goExport mdl qual item =
378
- case processExport True links_info unicode qual item of
379
- Nothing -> []
380
- Just html ->
381
- [ Object
382
- [ " display_html" .= String (showHtmlFragment html)
377
+ goExport mdl qual item
378
+ | Just item_html <- processExport True links_info unicode qual item
379
+ = [ Object
380
+ [ " display_html" .= String (showHtmlFragment item_html)
383
381
, " name" .= String (intercalate " " (map nameString names))
384
382
, " module" .= String (moduleString mdl)
385
383
, " link" .= String (fromMaybe " " (listToMaybe (map (nameLink mdl) names)))
386
384
]
387
- ]
385
+ ]
386
+ | otherwise = []
388
387
where
389
- names = exportName item
388
+ names = exportName item ++ exportSubs item
389
+
390
+ exportSubs :: ExportItem DocName -> [DocName ]
391
+ exportSubs ExportDecl { expItemSubDocs } = map fst expItemSubDocs
392
+ exportSubs _ = []
390
393
391
394
exportName :: ExportItem DocName -> [DocName ]
392
395
exportName ExportDecl { expItemDecl } = getMainDeclBinder $ unLoc expItemDecl
You can’t perform that action at this time.
0 commit comments