/usr/share/doc/libghc-language-javascript-doc/html/Language-JavaScript-Parser-Parser.html is in libghc-language-javascript-doc 0.6.0.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Language.JavaScript.Parser.Parser</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Language-JavaScript-Parser-Parser.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Language-JavaScript-Parser-Parser.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">language-javascript-0.6.0.10: Parser for JavaScript</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Language.JavaScript.Parser.Parser</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Parsing</a></li><li><a href="#g:2">Parsing expressions</a></li></ul></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:parse">parse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a></li><li class="src short"><a href="#v:readJs">readJs</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a></li><li class="src short"><a href="#v:parseFile">parseFile</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a></li><li class="src short"><a href="#v:parseFileUtf8">parseFileUtf8</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a></li><li class="src short"><a href="#v:parseUsing">parseUsing</a> :: <a href="Language-JavaScript-Parser-Lexer.html#t:Alex">Alex</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a></li><li class="src short"><a href="#v:showStripped">showStripped</a> :: <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:showStrippedMaybe">showStrippedMaybe</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> a <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1 id="g:1">Parsing</h1><div class="top"><p class="src"><a id="v:parse" class="def">parse</a> <a href="src/Language-JavaScript-Parser-Parser.html#parse" class="link">Source</a> <a href="#v:parse" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The input stream (Javascript source code).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The name of the Javascript source (filename or input device).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a></td><td class="doc"><p>An error or maybe the abstract syntax tree (AST) of zero
or more Javascript statements, plus comments.</p></td></tr></table></div><div class="doc"><p>Parse one compound statement, or a sequence of simple statements.
Generally used for interactive input, such as from the command line of an interpreter.
Return comments in addition to the parsed statements.</p></div></div><div class="top"><p class="src"><a id="v:readJs" class="def">readJs</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a> <a href="src/Language-JavaScript-Parser-Parser.html#readJs" class="link">Source</a> <a href="#v:readJs" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:parseFile" class="def">parseFile</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a> <a href="src/Language-JavaScript-Parser-Parser.html#parseFile" class="link">Source</a> <a href="#v:parseFile" class="selflink">#</a></p><div class="doc"><p>Parse the given file.
For UTF-8 support, make sure your locale is set such that
"System.IO.localeEncoding" returns "utf8"</p></div></div><div class="top"><p class="src"><a id="v:parseFileUtf8" class="def">parseFileUtf8</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a> <a href="src/Language-JavaScript-Parser-Parser.html#parseFileUtf8" class="link">Source</a> <a href="#v:parseFileUtf8" class="selflink">#</a></p><div class="doc"><p>Parse the given file, explicitly setting the encoding to UTF8
when reading it</p></div></div><h1 id="g:2">Parsing expressions</h1><div class="top"><p class="src"><a id="v:parseUsing" class="def">parseUsing</a> <a href="src/Language-JavaScript-Parser-Parser.html#parseUsing" class="link">Source</a> <a href="#v:parseUsing" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Language-JavaScript-Parser-Lexer.html#t:Alex">Alex</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a></td><td class="doc"><p>The parser to be used</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The input stream (Javascript source code).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The name of the Javascript source (filename or input device).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a></td><td class="doc"><p>An error or maybe the abstract syntax tree (AST) of zero
or more Javascript statements, plus comments.</p></td></tr></table></div><div class="doc"><p>Parse one compound statement, or a sequence of simple statements.
Generally used for interactive input, such as from the command line of an interpreter.
Return comments in addition to the parsed statements.</p></div></div><div class="top"><p class="src"><a id="v:showStripped" class="def">showStripped</a> :: <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Language-JavaScript-Parser-Parser.html#showStripped" class="link">Source</a> <a href="#v:showStripped" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:showStrippedMaybe" class="def">showStrippedMaybe</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> a <a href="Language-JavaScript-Parser-AST.html#t:JSAST">JSAST</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Language-JavaScript-Parser-Parser.html#showStrippedMaybe" class="link">Source</a> <a href="#v:showStrippedMaybe" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|