Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 97a84b09736c9f6da17a3071b86ce47d > files > 57

ghc-haskell-src-exts-devel-1.10.2-1.fc15.i686.rpm

<!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.Haskell.Exts.Annotated</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Language-Haskell-Exts-Annotated.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Language-Haskell-Exts-Annotated.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">haskell-src-exts-1.10.2: Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Maintainer</th><td>Niklas Broberg, d00nibro@chalmers.se</td></tr></table><p class="caption">Language.Haskell.Exts.Annotated</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Re-exported modules
</a></li><li><a href="#g:2">Parsing of Haskell source files
</a></li><li><a href="#g:3">Parsing of Haskell source elements,
</a></li><li><a href="#g:4">Read extensions declared in LANGUAGE pragmas
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>An umbrella module for the various functionality
 of the package. Also provides some convenient
 functionality for dealing directly with source files.
</p></div></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">module <a href="Language-Haskell-Exts-Annotated-Syntax.html">Language.Haskell.Exts.Annotated.Syntax</a></li><li class="src short">module <a href="Language-Haskell-Exts-Annotated-Build.html">Language.Haskell.Exts.Annotated.Build</a></li><li class="src short">module <a href="Language-Haskell-Exts-Parser.html">Language.Haskell.Exts.Parser</a></li><li class="src short">module <a href="Language-Haskell-Exts-Pretty.html">Language.Haskell.Exts.Pretty</a></li><li class="src short">module <a href="Language-Haskell-Exts-Annotated-Fixity.html">Language.Haskell.Exts.Annotated.Fixity</a></li><li class="src short">module <a href="Language-Haskell-Exts-Annotated-ExactPrint.html">Language.Haskell.Exts.Annotated.ExactPrint</a></li><li class="src short">module <a href="Language-Haskell-Exts-SrcLoc.html">Language.Haskell.Exts.SrcLoc</a></li><li class="src short">module <a href="Language-Haskell-Exts-Comments.html">Language.Haskell.Exts.Comments</a></li><li class="src short">module <a href="Language-Haskell-Exts-Extension.html">Language.Haskell.Exts.Extension</a></li><li class="src short"><a href="#v:parseFile">parseFile</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>))</li><li class="src short"><a href="#v:parseFileWithMode">parseFileWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>))</li><li class="src short"><a href="#v:parseFileWithExts">parseFileWithExts</a> :: [<a href="Language-Haskell-Exts-Extension.html#t:Extension">Extension</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>))</li><li class="src short"><a href="#v:parseFileWithComments">parseFileWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>]))</li><li class="src short"><a href="#v:parseFileContents">parseFileContents</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseFileContentsWithMode">parseFileContentsWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseFileContentsWithExts">parseFileContentsWithExts</a> :: [<a href="Language-Haskell-Exts-Extension.html#t:Extension">Extension</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseFileContentsWithComments">parseFileContentsWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])</li><li class="src short"><a href="#v:parseModule">parseModule</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseModuleWithMode">parseModuleWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseModuleWithComments">parseModuleWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])</li><li class="src short"><a href="#v:parseExp">parseExp</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Exp">Exp</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseExpWithMode">parseExpWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Exp">Exp</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseExpWithComments">parseExpWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Exp">Exp</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])</li><li class="src short"><a href="#v:parseStmt">parseStmt</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Stmt">Stmt</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseStmtWithMode">parseStmtWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Stmt">Stmt</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseStmtWithComments">parseStmtWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Stmt">Stmt</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])</li><li class="src short"><a href="#v:parsePat">parsePat</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Pat">Pat</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parsePatWithMode">parsePatWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Pat">Pat</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parsePatWithComments">parsePatWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Pat">Pat</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])</li><li class="src short"><a href="#v:parseDecl">parseDecl</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Decl">Decl</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseDeclWithMode">parseDeclWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Decl">Decl</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseDeclWithComments">parseDeclWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Decl">Decl</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])</li><li class="src short"><a href="#v:parseType">parseType</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Type">Type</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseTypeWithMode">parseTypeWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Type">Type</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)</li><li class="src short"><a href="#v:parseTypeWithComments">parseTypeWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Type">Type</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])</li><li class="src short"><a href="#v:readExtensions">readExtensions</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Language-Haskell-Exts-Extension.html#t:Extension">Extension</a>]</li></ul></div><div id="interface"><h1 id="g:1">Re-exported modules
</h1><div class="top"><p class="src">module <a href="Language-Haskell-Exts-Annotated-Syntax.html">Language.Haskell.Exts.Annotated.Syntax</a></p></div><div class="top"><p class="src">module <a href="Language-Haskell-Exts-Annotated-Build.html">Language.Haskell.Exts.Annotated.Build</a></p></div><div class="top"><p class="src">module <a href="Language-Haskell-Exts-Parser.html">Language.Haskell.Exts.Parser</a></p></div><div class="top"><p class="src">module <a href="Language-Haskell-Exts-Pretty.html">Language.Haskell.Exts.Pretty</a></p></div><div class="top"><p class="src">module <a href="Language-Haskell-Exts-Annotated-Fixity.html">Language.Haskell.Exts.Annotated.Fixity</a></p></div><div class="top"><p class="src">module <a href="Language-Haskell-Exts-Annotated-ExactPrint.html">Language.Haskell.Exts.Annotated.ExactPrint</a></p></div><div class="top"><p class="src">module <a href="Language-Haskell-Exts-SrcLoc.html">Language.Haskell.Exts.SrcLoc</a></p></div><div class="top"><p class="src">module <a href="Language-Haskell-Exts-Comments.html">Language.Haskell.Exts.Comments</a></p></div><div class="top"><p class="src">module <a href="Language-Haskell-Exts-Extension.html">Language.Haskell.Exts.Extension</a></p></div><h1 id="g:2">Parsing of Haskell source files
</h1><div class="top"><p class="src"><a name="v:parseFile" class="def">parseFile</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>))<a href="src/Language-Haskell-Exts-Annotated.html#parseFile" class="link">Source</a></p><div class="doc"><p>Parse a source file on disk, using the default parse mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseFileWithMode" class="def">parseFileWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>))<a href="src/Language-Haskell-Exts-Annotated.html#parseFileWithMode" class="link">Source</a></p><div class="doc"><p>Parse a source file on disk, supplying a custom parse mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseFileWithExts" class="def">parseFileWithExts</a> :: [<a href="Language-Haskell-Exts-Extension.html#t:Extension">Extension</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>))<a href="src/Language-Haskell-Exts-Annotated.html#parseFileWithExts" class="link">Source</a></p><div class="doc"><p>Parse a source file on disk, with an extra set of extensions to know about
   on top of what the file itself declares.
</p></div></div><div class="top"><p class="src"><a name="v:parseFileWithComments" class="def">parseFileWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>]))<a href="src/Language-Haskell-Exts-Annotated.html#parseFileWithComments" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parseFileContents" class="def">parseFileContents</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-Annotated.html#parseFileContents" class="link">Source</a></p><div class="doc"><p>Parse a source file from a string using the default parse mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseFileContentsWithMode" class="def">parseFileContentsWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-Annotated.html#parseFileContentsWithMode" class="link">Source</a></p><div class="doc"><p>Parse a source file from a string using a custom parse mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseFileContentsWithExts" class="def">parseFileContentsWithExts</a> :: [<a href="Language-Haskell-Exts-Extension.html#t:Extension">Extension</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-Annotated.html#parseFileContentsWithExts" class="link">Source</a></p><div class="doc"><p>Parse a source file from a string, with an extra set of extensions to know about
   on top of what the file itself declares.
</p></div></div><div class="top"><p class="src"><a name="v:parseFileContentsWithComments" class="def">parseFileContentsWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])<a href="src/Language-Haskell-Exts-Annotated.html#parseFileContentsWithComments" class="link">Source</a></p></div><h1 id="g:3">Parsing of Haskell source elements,
</h1><div class="top"><p class="src"><a name="v:parseModule" class="def">parseModule</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseModule" class="link">Source</a></p><div class="doc"><p>Parse of a string, which should contain a complete Haskell module.
</p></div></div><div class="top"><p class="src"><a name="v:parseModuleWithMode" class="def">parseModuleWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseModuleWithMode" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a complete Haskell module, using an explicit mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseModuleWithComments" class="def">parseModuleWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Module">Module</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])<a href="src/Language-Haskell-Exts-InternalParser.html#parseModuleWithComments" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a complete Haskell module, using an explicit mode, retaining comments.
</p></div></div><div class="top"><p class="src"><a name="v:parseExp" class="def">parseExp</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Exp">Exp</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseExp" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell expression.
</p></div></div><div class="top"><p class="src"><a name="v:parseExpWithMode" class="def">parseExpWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Exp">Exp</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseExpWithMode" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell expression, using an explicit mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseExpWithComments" class="def">parseExpWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Exp">Exp</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])<a href="src/Language-Haskell-Exts-InternalParser.html#parseExpWithComments" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a complete Haskell module, using an explicit mode, retaining comments.
</p></div></div><div class="top"><p class="src"><a name="v:parseStmt" class="def">parseStmt</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Stmt">Stmt</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseStmt" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell statement.
</p></div></div><div class="top"><p class="src"><a name="v:parseStmtWithMode" class="def">parseStmtWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Stmt">Stmt</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseStmtWithMode" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell type, using an explicit mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseStmtWithComments" class="def">parseStmtWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Stmt">Stmt</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])<a href="src/Language-Haskell-Exts-InternalParser.html#parseStmtWithComments" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a complete Haskell module, using an explicit mode, retaining comments.
</p></div></div><div class="top"><p class="src"><a name="v:parsePat" class="def">parsePat</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Pat">Pat</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parsePat" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell pattern.
</p></div></div><div class="top"><p class="src"><a name="v:parsePatWithMode" class="def">parsePatWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Pat">Pat</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parsePatWithMode" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell pattern, using an explicit mode.
</p></div></div><div class="top"><p class="src"><a name="v:parsePatWithComments" class="def">parsePatWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Pat">Pat</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])<a href="src/Language-Haskell-Exts-InternalParser.html#parsePatWithComments" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a complete Haskell module, using an explicit mode, retaining comments.
</p></div></div><div class="top"><p class="src"><a name="v:parseDecl" class="def">parseDecl</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Decl">Decl</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseDecl" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell top-level declaration.
</p></div></div><div class="top"><p class="src"><a name="v:parseDeclWithMode" class="def">parseDeclWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Decl">Decl</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseDeclWithMode" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell top-level declaration, using an explicit mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseDeclWithComments" class="def">parseDeclWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Decl">Decl</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])<a href="src/Language-Haskell-Exts-InternalParser.html#parseDeclWithComments" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a complete Haskell module, using an explicit mode, retaining comments.
</p></div></div><div class="top"><p class="src"><a name="v:parseType" class="def">parseType</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Type">Type</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseType" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell type.
</p></div></div><div class="top"><p class="src"><a name="v:parseTypeWithMode" class="def">parseTypeWithMode</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Type">Type</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>)<a href="src/Language-Haskell-Exts-InternalParser.html#parseTypeWithMode" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a Haskell type, using an explicit mode.
</p></div></div><div class="top"><p class="src"><a name="v:parseTypeWithComments" class="def">parseTypeWithComments</a> :: <a href="Language-Haskell-Exts-Parser.html#t:ParseMode">ParseMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Language-Haskell-Exts-Parser.html#t:ParseResult">ParseResult</a> (<a href="Language-Haskell-Exts-Annotated-Syntax.html#t:Type">Type</a> <a href="Language-Haskell-Exts-SrcLoc.html#t:SrcSpanInfo">SrcSpanInfo</a>, [<a href="Language-Haskell-Exts-Comments.html#t:Comment">Comment</a>])<a href="src/Language-Haskell-Exts-InternalParser.html#parseTypeWithComments" class="link">Source</a></p><div class="doc"><p>Parse of a string containing a complete Haskell module, using an explicit mode, retaining comments.
</p></div></div><h1 id="g:4">Read extensions declared in LANGUAGE pragmas
</h1><div class="top"><p class="src"><a name="v:readExtensions" class="def">readExtensions</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Language-Haskell-Exts-Extension.html#t:Extension">Extension</a>]<a href="src/Language-Haskell-Exts-Annotated.html#readExtensions" class="link">Source</a></p><div class="doc"><p>Gather the extensions declared in LANGUAGE pragmas
   at the top of the file. Returns <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if the
   parse of the pragmas fails.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>