/usr/share/doc/libghc-cabal-file-th-doc/html/Distribution-PackageDescription-TH.html is in libghc-cabal-file-th-doc 0.2.3-6.
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 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | <!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>Distribution.PackageDescription.TH</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_Distribution-PackageDescription-TH.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Distribution-PackageDescription-TH.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">cabal-file-th-0.2.3: Template Haskell expressions for reading fields from a project's cabal file.</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">Distribution.PackageDescription.TH</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Template Haskell functions</a></li><li><a href="#g:2">Cabal file data structures</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Utility functions for reading cabal file fields through template haskell.</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"><a href="#v:packageVariable">packageVariable</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Text.html#t:Text">Text</a> a => (<a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a> -> a) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.10.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.10.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li class="src short"><a href="#v:packageVariableFrom">packageVariableFrom</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Text.html#t:Text">Text</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -> (<a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a> -> a) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.10.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.10.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:PackageDescription">PackageDescription</a> :: * = <a href="#v:PackageDescription">PackageDescription</a> {<ul class="subs"><li><a href="#v:package">package</a> :: <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></li><li><a href="#v:license">license</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-License.html#t:License">License</a></li><li><a href="#v:licenseFiles">licenseFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</li><li><a href="#v:copyright">copyright</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:maintainer">maintainer</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:author">author</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:stability">stability</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:testedWith">testedWith</a> :: [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Compiler.html#t:CompilerFlavor">CompilerFlavor</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Version.html#t:VersionRange">VersionRange</a>)]</li><li><a href="#v:homepage">homepage</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:pkgUrl">pkgUrl</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:bugReports">bugReports</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:sourceRepos">sourceRepos</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:SourceRepo">SourceRepo</a>]</li><li><a href="#v:synopsis">synopsis</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:description">description</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:category">category</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:customFieldsPD">customFieldsPD</a> :: [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)]</li><li><a href="#v:buildDepends">buildDepends</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Package.html#t:Dependency">Dependency</a>]</li><li><a href="#v:specVersionRaw">specVersionRaw</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Version.html#t:VersionRange">VersionRange</a></li><li><a href="#v:buildType">buildType</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:BuildType">BuildType</a></li><li><a href="#v:library">library</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Library">Library</a></li><li><a href="#v:executables">executables</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Executable">Executable</a>]</li><li><a href="#v:testSuites">testSuites</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:TestSuite">TestSuite</a>]</li><li><a href="#v:benchmarks">benchmarks</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Benchmark">Benchmark</a>]</li><li><a href="#v:dataFiles">dataFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</li><li><a href="#v:dataDir">dataDir</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a></li><li><a href="#v:extraSrcFiles">extraSrcFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</li><li><a href="#v:extraTmpFiles">extraTmpFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</li><li><a href="#v:extraDocFiles">extraDocFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:PackageIdentifier">PackageIdentifier</a> :: * = <a href="#v:PackageIdentifier">PackageIdentifier</a> {<ul class="subs"><li><a href="#v:pkgName">pkgName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Package.html#t:PackageName">PackageName</a></li><li><a href="#v:pkgVersion">pkgVersion</a> :: <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Version">Version</a> :: * = <a href="#v:Version">Version</a> {<ul class="subs"><li><a href="#v:versionBranch">versionBranch</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a>]</li><li><a href="#v:versionTags">versionTags</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>]</li></ul>}</li></ul></div><div id="interface"><h1 id="g:1">Template Haskell functions</h1><div class="top"><p class="src"><a name="v:packageVariable" class="def">packageVariable</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Text.html#t:Text">Text</a> a => (<a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a> -> a) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.10.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.10.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> <a href="src/Distribution-PackageDescription-TH.html#packageVariable" class="link">Source</a></p><div class="doc"><p>Renders the package variable specified by the function.
The cabal file interrogated is the first one that is found
in the current working directory.</p></div></div><div class="top"><p class="src"><a name="v:packageVariableFrom" class="def">packageVariableFrom</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Text.html#t:Text">Text</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -> (<a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a> -> a) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.10.0.0/Language-Haskell-TH-Syntax.html#t:Q">Q</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/template-haskell-2.10.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a> <a href="src/Distribution-PackageDescription-TH.html#packageVariableFrom" class="link">Source</a></p><div class="doc"><p>Renders the package variable specified by the function, from a cabal file
and the given path.</p></div></div><h1 id="g:2">Cabal file data structures</h1><div class="doc"><p>The data structures for the cabal file are re-exported here for ease of use.</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:PackageDescription" class="def">PackageDescription</a> :: *</p><div class="doc"><p>This data type is the internal representation of the file <code>pkg.cabal</code>.
It contains two kinds of information about the package: information
which is needed for all packages, such as the package name and version, and
information which is needed for the simple build system only, such as
the compiler options and library name.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:PackageDescription" class="def">PackageDescription</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:package" class="def">package</a> :: <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:license" class="def">license</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-License.html#t:License">License</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:licenseFiles" class="def">licenseFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:copyright" class="def">copyright</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:maintainer" class="def">maintainer</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:author" class="def">author</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:stability" class="def">stability</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:testedWith" class="def">testedWith</a> :: [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Compiler.html#t:CompilerFlavor">CompilerFlavor</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Version.html#t:VersionRange">VersionRange</a>)]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:homepage" class="def">homepage</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:pkgUrl" class="def">pkgUrl</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:bugReports" class="def">bugReports</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:sourceRepos" class="def">sourceRepos</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:SourceRepo">SourceRepo</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:synopsis" class="def">synopsis</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>A one-line summary of this package</p></dd><dt class="src"><a name="v:description" class="def">description</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>A more verbose description of this package</p></dd><dt class="src"><a name="v:category" class="def">category</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:customFieldsPD" class="def">customFieldsPD</a> :: [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)]</dt><dd class="doc"><p>Custom fields starting
with x-, stored in a
simple assoc-list.
| YOU PROBABLY DON'T WANT TO USE THIS FIELD. This field is
special! Depending on how far along processing the
PackageDescription we are, the contents of this field are
either nonsense, or the collected dependencies of *all* the
components in this package. buildDepends is initialized by
<code>finalizePackageDescription</code> and <code>flattenPackageDescription</code>;
prior to that, dependency info is stored in the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:CondTree">CondTree</a></code>
built around a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:GenericPackageDescription">GenericPackageDescription</a></code>. When this
resolution is done, dependency info is written to the inner
<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:BuildInfo">BuildInfo</a></code> and this field. This is all horrible, and #2066
tracks progress to get rid of this field.</p></dd><dt class="src"><a name="v:buildDepends" class="def">buildDepends</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Package.html#t:Dependency">Dependency</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:specVersionRaw" class="def">specVersionRaw</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Version.html#t:VersionRange">VersionRange</a></dt><dd class="doc"><p>The version of the Cabal spec that this package description uses.
For historical reasons this is specified with a version range but
only ranges of the form <code>>= v</code> make sense. We are in the process of
transitioning to specifying just a single version, not a range.</p></dd><dt class="src"><a name="v:buildType" class="def">buildType</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:BuildType">BuildType</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:library" class="def">library</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Library">Library</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:executables" class="def">executables</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Executable">Executable</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:testSuites" class="def">testSuites</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:TestSuite">TestSuite</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:benchmarks" class="def">benchmarks</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Benchmark">Benchmark</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:dataFiles" class="def">dataFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:dataDir" class="def">dataDir</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:extraSrcFiles" class="def">extraSrcFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:extraTmpFiles" class="def">extraTmpFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:extraDocFiles" class="def">extraDocFiles</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]</dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:PackageDescription" class="caption collapser" onclick="toggleSection('i:PackageDescription')">Instances</p><div id="section.i:PackageDescription" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Data.html#t:Data">Data</a> <a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Read.html#t:Read">Read</a> <a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Generic">Generic</a> <a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.7.5.0/Data-Binary.html#t:Binary">Binary</a> <a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Package.html#t:Package">Package</a> <a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-PackageDescription-TH.html#t:PackageDescription">PackageDescription</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:D1">D1</a> D1PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:C1">C1</a> C1_0PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_0PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_1PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-License.html#t:License">License</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_2PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>])))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_3PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_4PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_5PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_6PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>))))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_7PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Compiler.html#t:CompilerFlavor">CompilerFlavor</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Version.html#t:VersionRange">VersionRange</a>)])) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_8PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_9PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_10PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_11PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:SourceRepo">SourceRepo</a>]))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_12PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_13PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)))))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_14PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_15PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)])) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_16PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Package.html#t:Dependency">Dependency</a>])))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_17PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Version.html#t:VersionRange">VersionRange</a>))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_18PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:BuildType">BuildType</a>)))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_19PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Library">Library</a>))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_20PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Executable">Executable</a>]))))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_21PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:TestSuite">TestSuite</a>])) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_22PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-PackageDescription.html#t:Benchmark">Benchmark</a>])) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_23PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>])))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_24PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_25PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]))) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_26PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>])) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_27PackageDescription (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a>]))))))))</span></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:PackageIdentifier" class="def">PackageIdentifier</a> :: *</p><div class="doc"><p>The name and version of a package.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:PackageIdentifier" class="def">PackageIdentifier</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:pkgName" class="def">pkgName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Package.html#t:PackageName">PackageName</a></dt><dd class="doc"><p>The name of this package, eg. foo</p></dd><dt class="src"><a name="v:pkgVersion" class="def">pkgVersion</a> :: <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></dt><dd class="doc"><p>the version of this package, eg 1.2</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:PackageIdentifier" class="caption collapser" onclick="toggleSection('i:PackageIdentifier')">Instances</p><div id="section.i:PackageIdentifier" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Data.html#t:Data">Data</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Read.html#t:Read">Read</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Generic">Generic</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/binary-0.7.5.0/Data-Binary.html#t:Binary">Binary</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Package.html#t:Package">Package</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Text.html#t:Text">Text</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/deepseq-1.4.1.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-PackageDescription-TH.html#t:PackageIdentifier">PackageIdentifier</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:D1">D1</a> D1PackageIdentifier (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:C1">C1</a> C1_0PackageIdentifier (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t::-42-:">(:*:)</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_0PackageIdentifier (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Package.html#t:PackageName">PackageName</a>)) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:S1">S1</a> S1_0_1PackageIdentifier (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a>))))</span></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Version" class="def">Version</a> :: *</p><div class="doc"><p>A <code><a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></code> represents the version of a software entity.</p><p>An instance of <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a></code> is provided, which implements exact equality
modulo reordering of the tags in the <code><a href="Distribution-PackageDescription-TH.html#v:versionTags">versionTags</a></code> field.</p><p>An instance of <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a></code> is also provided, which gives lexicographic
ordering on the <code><a href="Distribution-PackageDescription-TH.html#v:versionBranch">versionBranch</a></code> fields (i.e. 2.1 > 2.0, 1.2.3 > 1.2.2,
etc.). This is expected to be sufficient for many uses, but note that
you may need to use a more specific ordering for your versioning
scheme. For example, some versioning schemes may include pre-releases
which have tags <code>"pre1"</code>, <code>"pre2"</code>, and so on, and these would need to
be taken into account when determining ordering. In some cases, date
ordering may be more appropriate, so the application would have to
look for <code>date</code> tags in the <code><a href="Distribution-PackageDescription-TH.html#v:versionTags">versionTags</a></code> field and compare those.
The bottom line is, don't always assume that <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#v:compare">compare</a></code> and other <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a></code>
operations are the right thing for every <code><a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></code>.</p><p>Similarly, concrete representations of versions may differ. One
possible concrete representation is provided (see <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Version.html#v:showVersion">showVersion</a></code> and
<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Version.html#v:parseVersion">parseVersion</a></code>), but depending on the application a different concrete
representation may be more appropriate.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Version" class="def">Version</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:versionBranch" class="def">versionBranch</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a>]</dt><dd class="doc"><p>The numeric branch for this version. This reflects the
fact that most software versions are tree-structured; there
is a main trunk which is tagged with versions at various
points (1,2,3...), and the first branch off the trunk after
version 3 is 3.1, the second branch off the trunk after
version 3 is 3.2, and so on. The tree can be branched
arbitrarily, just by adding more digits.</p><p>We represent the branch as a list of <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></code>, so
version 3.2.1 becomes [3,2,1]. Lexicographic ordering
(i.e. the default instance of <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a></code> for <code>[Int]</code>) gives
the natural ordering of branches.</p></dd><dt class="src"><a name="v:versionTags" class="def">versionTags</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>]</dt><dd class="doc"><p>A version can be tagged with an arbitrary list of strings.
The interpretation of the list of tags is entirely dependent
on the entity that this version applies to.</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Version" class="caption collapser" onclick="toggleSection('i:Version')">Instances</p><div id="section.i:Version" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Exts.html#t:IsList">IsList</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></span></td><td class="doc"><p><em>Since: 4.8.0.0</em></p></td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Read.html#t:Read">Read</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/Cabal-1.22.5.0/Distribution-Text.html#t:Text">Text</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="keyword">type</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/GHC-Exts.html#t:Item">Item</a> <a href="Distribution-PackageDescription-TH.html#t:Version">Version</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></span></td><td class="doc empty"> </td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|