/usr/share/doc/libghc-cmdargs-doc/html/System-Console-CmdArgs-Implicit.html is in libghc-cmdargs-doc 0.10.6-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 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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | <!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>System.Console.CmdArgs.Implicit</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_System-Console-CmdArgs-Implicit.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-Console-CmdArgs-Implicit.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">cmdargs-0.10.6: Command line argument processing</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">System.Console.CmdArgs.Implicit</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Running command lines
</a></li><li><a href="#g:2">Constructing command lines
</a><ul><li><a href="#g:3">Impure
</a></li><li><a href="#g:4">Pure
</a></li></ul></li><li><a href="#g:5">Re-exported for convenience
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides simple command line argument processing.
The main function of interest is <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgs">cmdArgs</a></code>.
A simple example is:
</p><pre>data Sample = Sample {hello :: String} deriving (Show, Data, Typeable)</pre><pre>
sample = Sample{hello = <code><a href="System-Console-CmdArgs-Default.html#v:def">def</a></code> <code><a href="System-Console-CmdArgs-Implicit.html#v:-38--61-">&=</a></code> <code><a href="System-Console-CmdArgs-Implicit.html#v:help">help</a></code> "World argument" <code><a href="System-Console-CmdArgs-Implicit.html#v:-38--61-">&=</a></code> <code><a href="System-Console-CmdArgs-Implicit.html#v:opt">opt</a></code> "world"}
<code><a href="System-Console-CmdArgs-Implicit.html#v:-38--61-">&=</a></code> <code><a href="System-Console-CmdArgs-Implicit.html#v:summary">summary</a></code> "Sample v1"
</pre><pre>main = print =<< <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgs">cmdArgs</a></code> sample</pre><p>Attributes are used to control a number of behaviours:
</p><ul><li> The help message: <code><a href="System-Console-CmdArgs-Implicit.html#v:help">help</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:typ">typ</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:details">details</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:summary">summary</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:program">program</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:groupname">groupname</a></code>
</li><li> Flag behaviour: <code><a href="System-Console-CmdArgs-Implicit.html#v:opt">opt</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:enum">enum</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:verbosity">verbosity</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:ignore">ignore</a></code>
</li><li> Flag name assignment: <code><a href="System-Console-CmdArgs-Implicit.html#v:name">name</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:explicit">explicit</a></code>
</li><li> Controlling non-flag arguments: <code><a href="System-Console-CmdArgs-Implicit.html#v:args">args</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:argPos">argPos</a></code>
</li><li> multi-mode programs: <code><a href="System-Console-CmdArgs-Implicit.html#v:modes">modes</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:auto">auto</a></code>
</li></ul><p><em>Supported Types</em>: Each field in the record must be one of the supported
atomic types (<code>String</code>, <code>Int</code>, <code>Integer</code>, <code>Float</code>, <code>Double</code>, <code>Bool</code>, an
enumeration, a tuple of atomic types) or a list (<code>[]</code>) or <code>Maybe</code> wrapping
at atomic type.
</p><p><em>Missing Fields</em>: If a field is shared by multiple modes, it may be omitted
in subsequent modes, and will default to the previous value.
</p><p><em>Purity</em>: Values created with annotations are not pure - the first
time they are computed they will include the annotations, but subsequently
they will not. If you wish to run the above example in a more robust way:
</p><pre>sample = <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsMode">cmdArgsMode</a></code> $ Sample{hello = ... -- as before</pre><pre>main = print =<< <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsRun">cmdArgsRun</a></code> sample</pre><p>Even using this scheme, sometimes GHC's optimisations may share values who
have the same annotation. To disable sharing you may need to specify
<code>{-# OPTIONS_GHC -fno-cse #-}</code> in the module you define the flags.
</p><p><em>Pure annotations</em>: Alternatively, you may use pure annotations, which are
referentially transparent, but less type safe and more verbose. The initial
example may be written as:
</p><p><code>sample = <code><a href="System-Console-CmdArgs-Implicit.html#v:record">record</a></code> Sample{} [hello := <code><a href="System-Console-CmdArgs-Default.html#v:def">def</a></code> <code><a href="System-Console-CmdArgs-Implicit.html#v:-43--61-">+=</a></code> <code><a href="System-Console-CmdArgs-Implicit.html#v:help">help</a></code> "World argument" <code><a href="System-Console-CmdArgs-Implicit.html#v:-43--61-">+=</a></code> <code><a href="System-Console-CmdArgs-Implicit.html#v:opt">opt</a></code> "world"]</code>
<code> <code><a href="System-Console-CmdArgs-Implicit.html#v:-43--61-">+=</a></code> <code><a href="System-Console-CmdArgs-Implicit.html#v:summary">summary</a></code> "Sample v1"</code>
</p><pre>main = print =<< (cmdArgs_ sample :: IO Sample)</pre><p>All the examples are written using impure annotations. To convert to pure
annotations follow the rules:
</p><pre> Ctor {field1 = value1 &= ann1, field2 = value2} &= ann2 ==> record Ctor{} [field1 := value1 += ann1, field2 := value2] += ann2
Ctor (value1 &= ann1) value2 &= ann2 ==> record Ctor{} [atom value1 += ann1, atom value2] += ann2
modes [Ctor1{...}, Ctor2{...}] ==> modes_ [record Ctor1{} [...], record Ctor2{} [...]]
Ctor {field1 = enum [X &= ann, Y]} ==> record Ctor{} [enum_ field1 [atom X += ann, atom Y]]
</pre><p>If you are willing to use TemplateHaskell, you can write in the impure syntax,
but have your code automatically translated to the pure style. For more details see
<a href="System-Console-CmdArgs-Quote.html">System.Console.CmdArgs.Quote</a>.
</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:cmdArgs">cmdArgs</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:cmdArgsMode">cmdArgsMode</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => a -> <a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)</li><li class="src short"><a href="#v:cmdArgsRun">cmdArgsRun</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a) -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:cmdArgs_">cmdArgs_</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:cmdArgsMode_">cmdArgsMode_</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)</li><li class="src short"><a href="#v:cmdArgsApply">cmdArgsApply</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:CmdArgs">CmdArgs</a> a = <a href="#v:CmdArgs">CmdArgs</a> {<ul class="subs"><li><a href="#v:cmdArgsValue">cmdArgsValue</a> :: a</li><li><a href="#v:cmdArgsHelp">cmdArgsHelp</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li><a href="#v:cmdArgsVersion">cmdArgsVersion</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li><a href="#v:cmdArgsVerbosity">cmdArgsVerbosity</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-Console-CmdArgs-Verbosity.html#t:Verbosity">Verbosity</a></li><li><a href="#v:cmdArgsPrivate">cmdArgsPrivate</a> :: CmdArgsPrivate</li></ul>}</li><li class="src short"><a href="#v:opt">opt</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> a) => a -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:typ">typ</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:typFile">typFile</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:typDir">typDir</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:help">help</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:name">name</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:args">args</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:argPos">argPos</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:groupname">groupname</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:details">details</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:summary">summary</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:auto">auto</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:program">program</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:explicit">explicit</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:ignore">ignore</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:verbosity">verbosity</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:helpArg">helpArg</a> :: [<a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:versionArg">versionArg</a> :: [<a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:verbosityArgs">verbosityArgs</a> :: [<a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> [<a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:noAtExpand">noAtExpand</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:-38--61-">(&=)</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> val => val -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a> -> val</li><li class="src short"><a href="#v:modes">modes</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> val => [val] -> val</li><li class="src short"><a href="#v:enum">enum</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> val => [val] -> val</li><li class="src short"><a href="#v:-43--61-">(+=)</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann -> ann -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann</li><li class="src short"><a href="#v:record">record</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => a -> [<a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann] -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann</li><li class="src short"><a href="#v:atom">atom</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> val => val -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann</li><li class="src short"><span class="keyword">data</span> <a href="#t:Annotate">Annotate</a> ann = <span class="keyword">forall</span> c f . (<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> f) => (c -> f) <a href="#v::-61-">:=</a> f</li><li class="src short"><a href="#v:enum_">enum_</a> :: (<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> f) => (c -> f) -> [<a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short"><a href="#v:modes_">modes_</a> :: [<a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></li><li class="src short">module <a href="System-Console-CmdArgs-Verbosity.html">System.Console.CmdArgs.Verbosity</a></li><li class="src short">module <a href="System-Console-CmdArgs-Default.html">System.Console.CmdArgs.Default</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Ann">Ann</a> </li><li class="src short"><span class="keyword">data</span> <a href="#t:Mode">Mode</a> a</li><li class="src short"><span class="keyword">class</span> <a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> a => <a href="#t:Data">Data</a> a </li><li class="src short"><span class="keyword">class</span> <a href="#t:Typeable">Typeable</a> a </li></ul></div><div id="interface"><h1 id="g:1">Running command lines
</h1><div class="top"><p class="src"><a name="v:cmdArgs" class="def">cmdArgs</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a<a href="src/System-Console-CmdArgs-Implicit.html#cmdArgs" class="link">Source</a></p><div class="doc"><p>Take impurely annotated records and run the corresponding command line.
Shortcut for <code><code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsRun">cmdArgsRun</a></code> . <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsMode">cmdArgsMode</a></code></code>.
</p><p>To use <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgs">cmdArgs</a></code> with custom command line arguments see
<code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Environment.html#t:withArgs">withArgs</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:cmdArgsMode" class="def">cmdArgsMode</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => a -> <a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)<a href="src/System-Console-CmdArgs-Implicit.html#cmdArgsMode" class="link">Source</a></p><div class="doc"><p>Take impurely annotated records and turn them in to a <code><a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a></code> value, that can
make use of the <a href="System-Console-CmdArgs-Explicit.html">System.Console.CmdArgs.Explicit</a> functions (i.e. <code>process</code>).
</p><p>Annotated records are impure, and will only contain annotations on
their first use. The result of this function is pure, and can be reused.
</p></div></div><div class="top"><p class="src"><a name="v:cmdArgsRun" class="def">cmdArgsRun</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a) -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a<a href="src/System-Console-CmdArgs-Implicit.html#cmdArgsRun" class="link">Source</a></p><div class="doc"><p>Run a Mode structure. This function reads the command line arguments
and then performs as follows:
</p><ul><li> If invalid arguments are given, it will display the error message
and exit.
</li><li> If <code>--help</code> is given, it will display the help message and exit.
</li><li> If <code>--version</code> is given, it will display the version and exit.
</li><li> In all other circumstances the program will return a value.
</li><li> Additionally, if either <code>--quiet</code> or <code>--verbose</code> is given (see <code><a href="System-Console-CmdArgs-Implicit.html#v:verbosity">verbosity</a></code>)
it will set the verbosity (see <code><a href="System-Console-CmdArgs-Verbosity.html#v:setVerbosity">setVerbosity</a></code>).
</li></ul></div></div><div class="top"><p class="src"><a name="v:cmdArgs_" class="def">cmdArgs_</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a<a href="src/System-Console-CmdArgs-Implicit.html#cmdArgs_" class="link">Source</a></p><div class="doc"><p>Take purely annotated records and run the corresponding command line.
Shortcut for <code><code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsRun">cmdArgsRun</a></code> . <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsMode_">cmdArgsMode_</a></code></code>.
</p><p>To use <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgs_">cmdArgs_</a></code> with custom command line arguments see
<code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Environment.html#t:withArgs">withArgs</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:cmdArgsMode_" class="def">cmdArgsMode_</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)<a href="src/System-Console-CmdArgs-Implicit.html#cmdArgsMode_" class="link">Source</a></p><div class="doc"><p>Take purely annotated records and turn them in to a <code><a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a></code> value, that can
make use of the <a href="System-Console-CmdArgs-Explicit.html">System.Console.CmdArgs.Explicit</a> functions (i.e. <code>process</code>).
</p></div></div><div class="top"><p class="src"><a name="v:cmdArgsApply" class="def">cmdArgsApply</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a<a href="src/System-Console-CmdArgs-Implicit.html#cmdArgsApply" class="link">Source</a></p><div class="doc"><p>Perform the necessary actions dictated by a <code><a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a></code> structure.
</p><ul><li> If <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsHelp">cmdArgsHelp</a></code> is <code>Just</code>, it will display the help message and exit.
</li><li> If <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsVersion">cmdArgsVersion</a></code> is <code>Just</code>, it will display the version and exit.
</li><li> In all other circumstances it will return a value.
</li><li> Additionally, if <code><a href="System-Console-CmdArgs-Implicit.html#v:cmdArgsVerbosity">cmdArgsVerbosity</a></code> is <code>Just</code> (see <code><a href="System-Console-CmdArgs-Implicit.html#v:verbosity">verbosity</a></code>)
it will set the verbosity (see <code><a href="System-Console-CmdArgs-Verbosity.html#v:setVerbosity">setVerbosity</a></code>).
</li></ul></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:CmdArgs" class="def">CmdArgs</a> a <a href="src/System-Console-CmdArgs-Implicit-Type.html#CmdArgs" class="link">Source</a></p><div class="doc"><p>A structure to store the additional data relating to <code>--help</code>,
<code>--version</code>, <code>--quiet</code> and <code>--verbose</code>.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:CmdArgs" class="def">CmdArgs</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:cmdArgsValue" class="def">cmdArgsValue</a> :: a</dt><dd class="doc"><p>The underlying value being wrapped.
</p></dd><dt class="src"><a name="v:cmdArgsHelp" class="def">cmdArgsHelp</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></dt><dd class="doc"><p><code>Just</code> if <code>--help</code> is given, then gives the help message for display, including a trailing newline.
</p></dd><dt class="src"><a name="v:cmdArgsVersion" class="def">cmdArgsVersion</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></dt><dd class="doc"><p><code>Just</code> if <code>--version</code> is given, then gives the version message for display, including a trailing newline.
</p></dd><dt class="src"><a name="v:cmdArgsVerbosity" class="def">cmdArgsVerbosity</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-Console-CmdArgs-Verbosity.html#t:Verbosity">Verbosity</a></dt><dd class="doc"><p><code>Just</code> if <code>--quiet</code> or <code>--verbose</code> is given, then gives the verbosity to use.
</p></dd><dt class="src"><a name="v:cmdArgsPrivate" class="def">cmdArgsPrivate</a> :: CmdArgsPrivate</dt><dd class="doc"><p>Private: Only exported due to Haddock limitations.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:CmdArgs" class="caption collapser" onclick="toggleSection('i:CmdArgs')">Instances</p><div id="section.i:CmdArgs" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Functor">Functor</a> <a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:2">Constructing command lines
</h1><div class="doc"><p>Attributes can work on a flag (inside a field), on a mode (outside the record),
or on all modes (outside the <code><a href="System-Console-CmdArgs-Implicit.html#v:modes">modes</a></code> call).
</p></div><div class="top"><p class="src"><a name="v:opt" class="def">opt</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> a) => a -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#opt" class="link">Source</a></p><div class="doc"><p>Flag: "I want users to be able to omit the value associated with this flag."
</p><p>Make the value of a flag optional. If <code>--flag</code> is given, it will
be treated as <code>--flag=<em>this_argument</em></code>.
</p><pre> {hello = def &= opt "foo"}
-h --hello[=VALUE] (default=foo)
</pre><p>Note that all flags in CmdArgs are optional, and if omitted will use their default value.
Those annotated with <code>opt</code> also allow the flag to be present without an associated value.
As an example:
</p><pre> {hello = "DEFAULT" &= opt "OPTIONAL"}
</pre><pre> $ main
{hello = "DEFAULT"}
$ main --hello
{hello = "OPTIONAL"}
$ main --hello=VALUE
{hello = "VALUE"}
</pre></div></div><div class="top"><p class="src"><a name="v:typ" class="def">typ</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#typ" class="link">Source</a></p><div class="doc"><p>Flag: "For this flag, users need to give something of type ..."
</p><p>The the type of a flag's value, usually upper case. Only used
for the help message. Commonly the type will be <code>FILE</code> (<code><a href="System-Console-CmdArgs-Implicit.html#v:typFile">typFile</a></code>)
or <code>DIR</code> (<code><a href="System-Console-CmdArgs-Implicit.html#v:typDir">typDir</a></code>).
</p><pre> {hello = def &= typ "MESSAGE"}
-h --hello=MESSAGE
</pre></div></div><div class="top"><p class="src"><a name="v:typFile" class="def">typFile</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#typFile" class="link">Source</a></p><div class="doc"><p>Flag: "Users must give a file for this flag's value."
</p><p>Alias for <code><code><a href="System-Console-CmdArgs-Implicit.html#v:typ">typ</a></code> <a href="FILE.html">FILE</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:typDir" class="def">typDir</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#typDir" class="link">Source</a></p><div class="doc"><p>Flag: "Users must give a directory for this flag's value."
</p><p>Alias for <code><code><a href="System-Console-CmdArgs-Implicit.html#v:typ">typ</a></code> <a href="DIR.html">DIR</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:help" class="def">help</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#help" class="link">Source</a></p><div class="doc"><p>Flag/Mode: "The help message is ..."
</p><p>Descriptive text used in the help output.
</p><pre> {hello = def &= help "Help message"}
-h --hello=VALUE Help message
</pre></div></div><div class="top"><p class="src"><a name="v:name" class="def">name</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#name" class="link">Source</a></p><div class="doc"><p>Flag: "Use this flag name for this field."
</p><p>Add flags which trigger this option.
</p><pre> {hello = def &= name "foo"}
-h --hello --foo=VALUE
</pre></div></div><div class="top"><p class="src"><a name="v:args" class="def">args</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#args" class="link">Source</a></p><div class="doc"><p>Flag: "Put non-flag arguments here."
</p><p>All argument flags not captured by <code><a href="System-Console-CmdArgs-Implicit.html#v:argPos">argPos</a></code> are returned by <code><a href="System-Console-CmdArgs-Implicit.html#v:args">args</a></code>.
</p><pre> {hello = def &= args}
</pre></div></div><div class="top"><p class="src"><a name="v:argPos" class="def">argPos</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#argPos" class="link">Source</a></p><div class="doc"><p>Flag: "Put the nth non-flag argument here."
</p><p>This field should be used to store a particular argument position
(0-based).
</p><pre> {hello = def &= argPos 0}
</pre></div></div><div class="top"><p class="src"><a name="v:groupname" class="def">groupname</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#groupname" class="link">Source</a></p><div class="doc"><p>Flag/Mode: "Give these flags/modes a group name in the help output."
</p><p>This mode will be used for all following modes/flags, until the
next <code>groupname</code>.
</p><pre> {hello = def &= groupname "Welcomes"}
Welcomes
-h --hello=VALUE
</pre></div></div><div class="top"><p class="src"><a name="v:details" class="def">details</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#details" class="link">Source</a></p><div class="doc"><p>Mode: "A longer description of this mode is ..."
</p><p>Suffix to be added to the help message.
</p><pre> Sample{..} &= details ["More details on the website www.example.org"]
</pre></div></div><div class="top"><p class="src"><a name="v:summary" class="def">summary</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#summary" class="link">Source</a></p><div class="doc"><p>Modes: "My program name/version/copyright is ..."
</p><p>One line summary of the entire program, the first line of
<code>--help</code> and the only line of <code>--version</code>.
</p><pre> Sample{..} &= summary "CmdArgs v0.0, (C) Neil Mitchell 1981"
</pre></div></div><div class="top"><p class="src"><a name="v:auto" class="def">auto</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#auto" class="link">Source</a></p><div class="doc"><p>Mode: "If the user doesn't give a mode, use this one."
</p><p>This mode is the default. If no mode is specified and a mode has this
attribute then that mode is selected, otherwise an error is raised.
</p><pre> modes [Mode1{..}, Mode2{..} &= auto, Mode3{..}]
</pre></div></div><div class="top"><p class="src"><a name="v:program" class="def">program</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#program" class="link">Source</a></p><div class="doc"><p>Modes: "My program executable is named ..."
</p><p>This is the name of the program executable. Only used in the help message.
Defaults to the type of the mode.
</p><pre> Sample{..} &= program "sample"
</pre></div></div><div class="top"><p class="src"><a name="v:explicit" class="def">explicit</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#explicit" class="link">Source</a></p><div class="doc"><p>Flag: "Don't guess any names for this field."
</p><p>A field should not have any flag names guessed for it.
All flag names must be specified by <code>flag</code>.
</p><pre> {hello = def &= explicit &= name "foo"}
--foo=VALUE
</pre></div></div><div class="top"><p class="src"><a name="v:ignore" class="def">ignore</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#ignore" class="link">Source</a></p><div class="doc"><p>Flag/Mode: "Ignore this field, don't let the user set it."
</p><p>A mode or field is not dealt with by CmdArgs.
</p><pre> {hello = def, extra = def &= ignore}
--hello=VALUE
</pre></div></div><div class="top"><p class="src"><a name="v:verbosity" class="def">verbosity</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#verbosity" class="link">Source</a></p><div class="doc"><p>Modes: "My program needs verbosity flags."
</p><p>Add <code>--verbose</code> and <code>--quiet</code> flags.
</p></div></div><div class="top"><p class="src"><a name="v:helpArg" class="def">helpArg</a> :: [<a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#helpArg" class="link">Source</a></p><div class="doc"><p>Modes: "Customise the help argument."
</p><p>Add extra options to a help argument, such as <code><a href="System-Console-CmdArgs-Implicit.html#v:help">help</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:name">name</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:ignore">ignore</a></code> or <code><a href="System-Console-CmdArgs-Implicit.html#v:explicit">explicit</a></code>.
</p><pre> Sample{..} &= helpArg [explicit, name "h"]
</pre></div></div><div class="top"><p class="src"><a name="v:versionArg" class="def">versionArg</a> :: [<a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#versionArg" class="link">Source</a></p><div class="doc"><p>Modes: "Customise the version argument."
</p><p>Add extra options to a version argument, such as <code><a href="System-Console-CmdArgs-Implicit.html#v:help">help</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:name">name</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:ignore">ignore</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:summary">summary</a></code> or <code><a href="System-Console-CmdArgs-Implicit.html#v:explicit">explicit</a></code>.
</p><pre> Sample{..} &= versionArg [ignore]
</pre></div></div><div class="top"><p class="src"><a name="v:verbosityArgs" class="def">verbosityArgs</a> :: [<a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> [<a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#verbosityArgs" class="link">Source</a></p><div class="doc"><p>Modes: "Customise the verbosity arguments."
</p><p>Add extra options to a verbosity arguments (<code>--verbose</code> and <code>--quiet</code>),
such as <code><a href="System-Console-CmdArgs-Implicit.html#v:help">help</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:name">name</a></code>, <code><a href="System-Console-CmdArgs-Implicit.html#v:ignore">ignore</a></code> or <code><a href="System-Console-CmdArgs-Implicit.html#v:explicit">explicit</a></code>. The verbose options come
first, followed by the quiet options.
</p><pre> Sample{..} &= verbosityArgs [ignore] [name "silent", explicit]
</pre></div></div><div class="top"><p class="src"><a name="v:noAtExpand" class="def">noAtExpand</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit-UI.html#noAtExpand" class="link">Source</a></p><div class="doc"><p>Program: "Turn off @ expansion."
</p><p>Usually arguments starting with @ are treated as a file containing
a set of arguments. This annotation turns off that behaviour.
</p><pre> Sample{..} &= noAtExpand
</pre></div></div><h2 id="g:3">Impure
</h2><div class="top"><p class="src"><a name="v:-38--61-" class="def">(&=)</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> val => val -> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a> -> val<a href="src/System-Console-CmdArgs-Implicit.html#%26%3D" class="link">Source</a></p><div class="doc"><p>Add an annotation to a value. Note that if the value is evaluated
more than once the annotation will only be available the first time.
</p></div></div><div class="top"><p class="src"><a name="v:modes" class="def">modes</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> val => [val] -> val<a href="src/System-Console-CmdArgs-Implicit.html#modes" class="link">Source</a></p><div class="doc"><p>Modes: "I want a program with multiple modes, like darcs or cabal."
</p><p>Takes a list of modes, and creates a mode which includes them all.
If you want one of the modes to be chosen by default, see <code><a href="System-Console-CmdArgs-Implicit.html#v:auto">auto</a></code>.
</p><pre> data Modes = Mode1 | Mode2 | Mode3 deriving Data
cmdArgs $ modes [Mode1,Mode2,Mode3]
</pre></div></div><div class="top"><p class="src"><a name="v:enum" class="def">enum</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> val => [val] -> val<a href="src/System-Console-CmdArgs-Implicit.html#enum" class="link">Source</a></p><div class="doc"><p>Flag: "I want several different flags to set this one field to different values."
</p><p>This annotation takes a type which is an enumeration, and provides multiple
separate flags to set the field to each value. The first element in the list
is used as the value of the field.
</p><pre> data State = On | Off deriving Data
data Mode = Mode {state :: State}
cmdArgs $ Mode {state = enum [On &= help "Turn on",Off &= help "Turn off"]}
--on Turn on
--off Turn off
</pre><p>This annotation can be used to allow multiple flags within a field:
</p><pre> data Mode = Mode {state :: [State]}
cmdArgs $ Mode {state = enum [[] &= ignore, [On] &= help "Turn on", [Off] &= help "Turn off"]}
</pre><p>Now <code>--on --off</code> would produce <code>Mode [On,Off]</code>.
</p></div></div><h2 id="g:4">Pure
</h2><div class="top"><p class="src"><a name="v:-43--61-" class="def">(+=)</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann -> ann -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann<a href="src/System-Console-CmdArgs-Annotate.html#%2B%3D" class="link">Source</a></p><div class="doc"><p>Add an annotation to a value.
</p></div></div><div class="top"><p class="src"><a name="v:record" class="def">record</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => a -> [<a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann] -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann<a href="src/System-Console-CmdArgs-Annotate.html#record" class="link">Source</a></p><div class="doc"><p>Create a constructor/record. The first argument should be
the type of field, the second should be a list of fields constructed
originally defined by <code>:=</code> or <code>:=+</code>.
</p><p>This operation is not type safe, and may raise an exception at runtime
if any field has the wrong type or label.
</p></div></div><div class="top"><p class="src"><a name="v:atom" class="def">atom</a> :: <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> val => val -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> ann<a href="src/System-Console-CmdArgs-Annotate.html#atom" class="link">Source</a></p><div class="doc"><p>Lift a pure value to an annotation.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Annotate" class="def">Annotate</a> ann <a href="src/System-Console-CmdArgs-Annotate.html#Annotate" class="link">Source</a></p><div class="doc"><p>This type represents an annotated value. The type of the underlying value is not specified.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><span class="keyword">forall</span> c f . (<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> f) => (c -> f) <a name="v::-61-" class="def">:=</a> f</td><td class="doc"><p>Construct a field, <code>fieldname := value</code>.
</p></td></tr></table></div><div class="subs instances"><p id="control.i:Annotate" class="caption collapser" onclick="toggleSection('i:Annotate')">Instances</p><div id="section.i:Annotate" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:enum_" class="def">enum_</a> :: (<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> f) => (c -> f) -> [<a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit.html#enum_" class="link">Source</a></p><div class="doc"><p>Like <code><a href="System-Console-CmdArgs-Implicit.html#v:enum">enum</a></code>, but using the pure annotations.
</p></div></div><div class="top"><p class="src"><a name="v:modes_" class="def">modes_</a> :: [<a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a>] -> <a href="System-Console-CmdArgs-Implicit.html#t:Annotate">Annotate</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a><a href="src/System-Console-CmdArgs-Implicit.html#modes_" class="link">Source</a></p><div class="doc"><p>Like <code><a href="System-Console-CmdArgs-Implicit.html#v:modes">modes</a></code>, but using the pure annotations.
</p></div></div><h1 id="g:5">Re-exported for convenience
</h1><div class="doc"><p>Provides a few opaque types (for writing type signatures),
verbosity control, default values with <code><a href="System-Console-CmdArgs-Default.html#v:def">def</a></code> and the
<code>Data</code>/<code>Typeable</code> type classes.
</p></div><div class="top"><p class="src">module <a href="System-Console-CmdArgs-Verbosity.html">System.Console.CmdArgs.Verbosity</a></p></div><div class="top"><p class="src">module <a href="System-Console-CmdArgs-Default.html">System.Console.CmdArgs.Default</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Ann" class="def">Ann</a> <a href="src/System-Console-CmdArgs-Implicit-Ann.html#Ann" class="link">Source</a></p><div class="doc"><p>The general type of annotations that can be associated with a value.
</p></div><div class="subs instances"><p id="control.i:Ann" class="caption collapser" onclick="toggleSection('i:Ann')">Instances</p><div id="section.i:Ann" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></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:Mode" class="def">Mode</a> a <a href="src/System-Console-CmdArgs-Explicit-Type.html#Mode" class="link">Source</a></p><div class="doc"><p>A mode. Do not use the <code><a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a></code> constructor directly, instead
use <code><a href="System-Console-CmdArgs-Explicit.html#v:mode">mode</a></code> to construct the <code><a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a></code> and then record updates.
Each mode has three main features:
</p><ul><li> A list of submodes (<code><a href="System-Console-CmdArgs-Explicit.html#v:modeGroupModes">modeGroupModes</a></code>)
</li><li> A list of flags (<code><a href="System-Console-CmdArgs-Explicit.html#v:modeGroupFlags">modeGroupFlags</a></code>)
</li><li> Optionally an unnamed argument (<code><a href="System-Console-CmdArgs-Explicit.html#v:modeArgs">modeArgs</a></code>)
</li></ul><p>To produce the help information for a mode, either use <code>helpText</code> or <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#v:show">show</a></code>.
</p></div><div class="subs instances"><p id="control.i:Mode" class="caption collapser" onclick="toggleSection('i:Mode')">Instances</p><div id="section.i:Mode" class="show"><table><tr><td class="src"><a href="System-Console-CmdArgs-Explicit.html#t:Remap">Remap</a> <a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> (<a href="System-Console-CmdArgs-Implicit.html#t:Mode">Mode</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> a => <a name="t:Data" class="def">Data</a> a </p><div class="doc"><p>The <code><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a></code> class comprehends a fundamental primitive <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gfoldl">gfoldl</a></code> for
folding over constructor applications, say terms. This primitive can
be instantiated in several ways to map over the immediate subterms
of a term; see the <code>gmap</code> combinators later in this class. Indeed, a
generic programmer does not necessarily need to use the ingenious gfoldl
primitive but rather the intuitive <code>gmap</code> combinators. The <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gfoldl">gfoldl</a></code>
primitive is completed by means to query top-level constructors, to
turn constructor representations into proper terms, and to list all
possible datatype constructors. This completion allows us to serve
generic programming scenarios like read, show, equality, term generation.
</p><p>The combinators <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gmapT">gmapT</a></code>, <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gmapQ">gmapQ</a></code>, <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gmapM">gmapM</a></code>, etc are all provided with
default definitions in terms of <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gfoldl">gfoldl</a></code>, leaving open the opportunity
to provide datatype-specific definitions.
(The inclusion of the <code>gmap</code> combinators as members of class <code><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a></code>
allows the programmer or the compiler to derive specialised, and maybe
more efficient code per datatype. <em>Note</em>: <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gfoldl">gfoldl</a></code> is more higher-order
than the <code>gmap</code> combinators. This is subject to ongoing benchmarking
experiments. It might turn out that the <code>gmap</code> combinators will be
moved out of the class <code><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a></code>.)
</p><p>Conceptually, the definition of the <code>gmap</code> combinators in terms of the
primitive <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gfoldl">gfoldl</a></code> requires the identification of the <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gfoldl">gfoldl</a></code> function
arguments. Technically, we also need to identify the type constructor
<code>c</code> for the construction of the result type from the folded term type.
</p><p>In the definition of <code>gmapQ</code><em>x</em> combinators, we use phantom type
constructors for the <code>c</code> in the type of <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gfoldl">gfoldl</a></code> because the result type
of a query does not involve the (polymorphic) type of the term argument.
In the definition of <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gmapQl">gmapQl</a></code> we simply use the plain constant type
constructor because <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#v:gfoldl">gfoldl</a></code> is left-associative anyway and so it is
readily suited to fold a left-associative binary operation over the
immediate subterms. In the definition of gmapQr, extra effort is
needed. We use a higher-order accumulation trick to mediate between
left-associative constructor application vs. right-associative binary
operation (e.g., <code>(:)</code>). When the query is meant to compute a value
of type <code>r</code>, then the result type withing generic folding is <code>r -> r</code>.
So the result of folding is a function to which we finally pass the
right unit.
</p><p>With the <code>-XDeriveDataTypeable</code> option, GHC can generate instances of the
<code><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a></code> class automatically. For example, given the declaration
</p><pre> data T a b = C1 a b | C2 deriving (Typeable, Data)
</pre><p>GHC will generate an instance that is equivalent to
</p><pre> instance (Data a, Data b) => Data (T a b) where
gfoldl k z (C1 a b) = z C1 `k` a `k` b
gfoldl k z C2 = z C2
gunfold k z c = case constrIndex c of
1 -> k (k (z C1))
2 -> z C2
toConstr (C1 _ _) = con_C1
toConstr C2 = con_C2
dataTypeOf _ = ty_T
con_C1 = mkConstr ty_T "C1" [] Prefix
con_C2 = mkConstr ty_T "C2" [] Prefix
ty_T = mkDataType "Module.T" [con_C1, con_C2]
</pre><p>This is suitable for datatypes that are exported transparently.
</p></div><div class="subs instances"><p id="control.i:Data" class="caption collapser" onclick="toggleSection('i:Data')">Instances</p><div id="section.i:Data" class="show"><table><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int8">Int8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int64">Int64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ordering">Ordering</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word">Word</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word16">Word16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Match">Match</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Clause">Clause</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Pat">Pat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Type">Type</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Dec">Dec</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Name">Name</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:FunDep">FunDep</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Pred">Pred</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:TyVarBndr">TyVarBndr</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> ()</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:ModName">ModName</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:PkgName">PkgName</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:OccName">OccName</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:NameFlavour">NameFlavour</a></td><td class="doc"><p>Although the NameFlavour type is abstract, the Data instance is not. The reason for this
is that currently we use Data to serialize values in annotations, and in order for that to
work for Template Haskell names introduced via the 'x syntax we need gunfold on NameFlavour
to work. Bleh!
</p><p>The long term solution to this is to use the binary package for annotation serialization and
then remove this instance. However, to do _that_ we need to wait on binary to become stable, since
boot libraries cannot be upgraded seperately from GHC itself.
</p><p>This instance cannot be derived automatically due to bug #2701
</p></td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:NameSpace">NameSpace</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Info">Info</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Fixity">Fixity</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:FixityDirection">FixityDirection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Lit">Lit</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Body">Body</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Guard">Guard</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Stmt">Stmt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Range">Range</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:FamFlavour">FamFlavour</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Foreign">Foreign</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Callconv">Callconv</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Safety">Safety</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Pragma">Pragma</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Inline">Inline</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:RuleMatch">RuleMatch</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Phases">Phases</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:RuleBndr">RuleBndr</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Strict">Strict</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Con">Con</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:TyLit">TyLit</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> <a href="System-Console-CmdArgs-Verbosity.html#t:Verbosity">Verbosity</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> [a]</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integral">Integral</a> a) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ratio.html#t:Ratio">Ratio</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (<a href="System-Console-CmdArgs-Implicit.html#t:CmdArgs">CmdArgs</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> b) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> a b)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> b) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (a, b)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> b, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ix.html#t:Ix">Ix</a> a) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/array-0.4.0.1/Data-Array.html#t:Array">Array</a> a b)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> b, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (a, b, c)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> b, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> d) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (a, b, c, d)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> b, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> d, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> e) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (a, b, c, d, e)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> b, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> d, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> e, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> f) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (a, b, c, d, e, f)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> a, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> b, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> c, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> d, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> e, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> f, <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> g) => <a href="System-Console-CmdArgs-Implicit.html#t:Data">Data</a> (a, b, c, d, e, f, g)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Typeable" class="def">Typeable</a> a </p><div class="doc"><p>The class <code><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a></code> allows a concrete representation of a type to
be calculated.
</p></div><div class="subs instances"><p id="control.i:Typeable" class="caption collapser" onclick="toggleSection('i:Typeable')">Instances</p><div id="section.i:Typeable" class="show"><table><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int8">Int8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int64">Int64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ordering">Ordering</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad-ST-Safe.html#t:RealWorld">RealWorld</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word">Word</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word16">Word16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Exp">Exp</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Match">Match</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Clause">Clause</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Pat">Pat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Type">Type</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Dec">Dec</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Name">Name</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:FunDep">FunDep</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Pred">Pred</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:TyVarBndr">TyVarBndr</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> ()</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> Handle__</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:PatternMatchFail">PatternMatchFail</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:RecSelError">RecSelError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:RecConError">RecConError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:RecUpdError">RecUpdError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:NoMethodError">NoMethodError</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:NonTermination">NonTermination</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:NestedAtomically">NestedAtomically</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:BlockedIndefinitelyOnMVar">BlockedIndefinitelyOnMVar</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:BlockedIndefinitelyOnSTM">BlockedIndefinitelyOnSTM</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Deadlock">Deadlock</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:AssertionFailed">AssertionFailed</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:AsyncException">AsyncException</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:ArrayException">ArrayException</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Exit.html#t:ExitCode">ExitCode</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CChar">CChar</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CSChar">CSChar</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CUChar">CUChar</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CShort">CShort</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CUShort">CUShort</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CInt">CInt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CUInt">CUInt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CLong">CLong</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CULong">CULong</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CLLong">CLLong</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CULLong">CULLong</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CFloat">CFloat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CDouble">CDouble</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CPtrdiff">CPtrdiff</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CSize">CSize</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CWchar">CWchar</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CSigAtomic">CSigAtomic</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CClock">CClock</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CTime">CTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CUSeconds">CUSeconds</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CSUSeconds">CSUSeconds</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CIntPtr">CIntPtr</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CUIntPtr">CUIntPtr</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CIntMax">CIntMax</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CUIntMax">CUIntMax</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:IOException">IOException</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:ErrorCall">ErrorCall</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:ArithException">ArithException</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:TypeRep">TypeRep</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:TyCon">TyCon</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:ModName">ModName</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:PkgName">PkgName</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:OccName">OccName</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:NameFlavour">NameFlavour</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:NameSpace">NameSpace</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Info">Info</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Fixity">Fixity</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:FixityDirection">FixityDirection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Lit">Lit</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Body">Body</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Guard">Guard</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Stmt">Stmt</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Range">Range</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:FamFlavour">FamFlavour</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Foreign">Foreign</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Callconv">Callconv</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Safety">Safety</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Pragma">Pragma</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Inline">Inline</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:RuleMatch">RuleMatch</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Phases">Phases</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:RuleBndr">RuleBndr</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Strict">Strict</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Con">Con</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:TyLit">TyLit</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="System-Console-CmdArgs-Implicit.html#t:Ann">Ann</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> <a href="System-Console-CmdArgs-Verbosity.html#t:Verbosity">Verbosity</a></td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> s, <a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> a) => <a href="System-Console-CmdArgs-Implicit.html#t:Typeable">Typeable</a> (s a)</td><td class="doc"><p>One Typeable instance for all Typeable1 instances
</p></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.13.2</p></div></body></html>
|