diff options
author | alexwl <alexey.a.kiryushin@gmail.com> | 2018-11-30 14:20:41 +0300 |
---|---|---|
committer | alexwl <alexey.a.kiryushin@gmail.com> | 2018-11-30 14:20:41 +0300 |
commit | 2c089ff24c85faf0595a1d8b985c4e3ead3f4b64 (patch) | |
tree | 23ecc02b30dee2ac9cfe4e26ae5c7a60fd42ec3c /javascript/release/assets | |
parent | 868b51bc5e26df88696e782c131d3fc47995facb (diff) |
Show 'No location info' message for Paths_* modules
Diffstat (limited to 'javascript/release/assets')
-rw-r--r-- | javascript/release/assets/haskell-code-explorer-086793a1205857156d8bfbc2fac4fd26.js (renamed from javascript/release/assets/haskell-code-explorer-d2bc4f36fcf13e651c8f4a3bf5e2946b.js) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/release/assets/haskell-code-explorer-d2bc4f36fcf13e651c8f4a3bf5e2946b.js b/javascript/release/assets/haskell-code-explorer-086793a1205857156d8bfbc2fac4fd26.js index 4cd7229..fe07b6a 100644 --- a/javascript/release/assets/haskell-code-explorer-d2bc4f36fcf13e651c8f4a3bf5e2946b.js +++ b/javascript/release/assets/haskell-code-explorer-086793a1205857156d8bfbc2fac4fd26.js @@ -180,7 +180,7 @@ e.updateColorThemeCss=n,e.colorThemeToCss=t,e.themes=i}),define("haskell-code-ex return 1!=e.startLine&&(o="#L"+e.startLine),"/package/"+n+"/show/"+t+o}function n(e,t){var n="" return"Mod"!==t.entity&&(n="#"+encodeURIComponent(t.name)),"https://hackage.haskell.org/package/"+e+"/docs/src/"+t.moduleName+".html"+n}function o(e,t){return 2===e?window.open(t,"_blank"):1==e&&(window.location=t),!1}function r(e){if(e){var t=window.location.origin+window.location.pathname+"#L"+e location.href!=t&&(window.location.hash="#L"+e)}}function i(e,i,l,s){if("ExactLocation"===i.tag){var a=t(i) -i.startLine!==s&&r(s),o(l,a)}else if("ApproximateLocation"===i.tag){var c=i.packageId.name+"-"+i.packageId.version +i.startLine!==s&&r(s),o(l,a)}else if("ApproximateLocation"===i.tag&&0!==i.moduleName.indexOf("Paths_")){var c=i.packageId.name+"-"+i.packageId.version "Mod"===i.entity?e.loadDefinitionSite(c,i.moduleName,i.componentId,i.entity,i.moduleName).then(function(e){var t=e.location.packageId.name+"-"+e.location.packageId.version o(l,"/package/"+t+"/show/"+e.location.modulePath)}).catch(function(){o(l,n(c,i))}):e.loadDefinitionSite(c,i.moduleName,i.componentId,i.entity,i.name).then(function(e){if("ExactLocation"===e.location.tag){var a=t(e.location) i.startLine!==s&&r(s),o(l,a)}else r(s),o(l,n(c,i))}).catch(function(e){console.log(e),r(s),o(l,n(c,i))})}else alert("No location info")}Object.defineProperty(e,"__esModule",{value:!0}),e.goToDefinition=i,e.openUrl=o}),define("haskell-code-explorer/utils/line-selection",["exports"],function(e){function t(e,t){var o=Array.prototype.slice.call(e.querySelectorAll("td.line-number")) @@ -204,4 +204,4 @@ return c&&o(c,e),[a]}}}function o(e,t){e.parentNode.scrollIntoView() var n=t.parentNode.parentNode,o=n.offsetHeight t.offsetHeight-n.scrollTop>o&&(n.scrollTop=n.scrollTop-(o/2-20))}function r(e,t,n){Array.prototype.slice.call(e.querySelectorAll("td.line-content")).forEach(function(e){var o=parseInt(e.id.substring(2)) o>=t&&o<=n?e.classList.add("highlighted-line"):e.classList.remove("highlighted-line")})}Object.defineProperty(e,"__esModule",{value:!0}),e.initializeLineSelection=t,e.highlightLines=r,e.highlightSelectedLines=n}),define("haskell-code-explorer/config/environment",[],function(){try{var e="haskell-code-explorer/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n=JSON.parse(unescape(t)),o={default:n} -return Object.defineProperty(o,"__esModule",{value:!0}),o}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("haskell-code-explorer/app").default.create({staticUrlPrefix:"/files",apiUrlPrefix:"/api",haskellCodeExplorerDirectory:".haskell-code-explorer",title:"Haskell Code Explorer",name:"haskell-code-explorer",version:"0.0.1+5ddedadb"}) +return Object.defineProperty(o,"__esModule",{value:!0}),o}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("haskell-code-explorer/app").default.create({staticUrlPrefix:"/files",apiUrlPrefix:"/api",haskellCodeExplorerDirectory:".haskell-code-explorer",title:"Haskell Code Explorer",name:"haskell-code-explorer",version:"0.0.1+868b51bc"}) |