ed"><a href="#val-char" class="anchor"></a><code><span><span class="keyword">val</span> char : <span>char <span class="arrow">&#45;&gt;</span></span> <span>char <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>char c</code> parses character <code>c</code> exactly.</p><p>Examples</p><pre><code>module P = Reparse.String

;;
let p = P.char 'h' in
let v = P.parse_string p &quot;hello&quot; in
v = 'h'</code></pre></div></div><div class="odoc-spec"><div class="spec value" id="val-c