Commit 8f108dd7 authored by Camil Staps's avatar Camil Staps 🍃

Also add usages link on results from Clean core; add two ranking constraints

parent 42b838a6
Pipeline #16565 passed with stage
in 15 minutes and 38 seconds
[ [{"name":"toInt"}, ["LT",["Class","StdOverloaded","toInt"], ["Function","StdChar","digitToInt"]]]
, [{"name":"Char"}, ["LT",["TypeDef","_builtin","Char"], ["Class","StdOverloaded","toChar"]]]
, [{"name":"Foldable"}, ["LT",["Class","Data.Foldable","Foldable"], ["Class","Text.StringAppender","Appendable"]]]
, [{"name":"Foldable"}, ["LT",["Class","Data.Foldable","Foldable"], ["Function","StdList","foldr"]]]
......@@ -27,6 +29,8 @@
, [{"unify":"Int -> [Int]"}, ["LT",["Function","Control.Applicative","pure"], ["Function","Text.Unicode","toUnicode"]]]
, [{"unify":"Int -> [Int]"}, ["LT",["Function","System._Unsafe","unsafeCoerce"], ["Function","StdMisc","undef"]]]
, [{"using":["Char"]}, ["LT",["TypeDef","_builtin","Char"], ["Function","StdMisc","abort"]]]
, [{"using":["Text"]}, ["LT",["Class","Text","Text"], ["Function","Text.Terminal.VT100","vt100render"]]]
, [{"using":["Text"]}, ["LT",["Class","Text","Text"], ["Function","iTasks.WF.Tasks.Interaction","viewTitle"]]]
]
......@@ -377,12 +377,14 @@ function getResults(str, libs, include_builtins, include_core, include_apps, pag
var basicText = basic['library'] + ': ' +
basic['modul'] + ' (' + dclLink +
'<a href="' + iclUrl + '" target="_blank">icl' + iclLine + '</a>) ' +
'<a class="usages-link" href="#using ' + basic['name'] + '" title="Find where this is used">usages &rarr;</a>';
'<a href="' + iclUrl + '" target="_blank">icl' + iclLine + '</a>)';
if ('builtin' in basic && basic['builtin'])
basicText = 'Clean core. The actual implementation may differ.';
basicText +=
'<a class="usages-link" href="#using ' + basic['name'] + '" title="Find where this is used">usages &rarr;</a>';
var result = document.createElement('div');
var basic = document.createElement('div');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment