/usr/share/doc/libghc-maccatcher-doc/html/System-Info-MAC-Fetch.html is in libghc-maccatcher-doc 2.1.5-5build1.
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 | <!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.Info.MAC.Fetch</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-Info-MAC-Fetch.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-Info-MAC-Fetch.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">maccatcher-2.1.5: Obtain the host MAC address on *NIX and Windows.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr></table><p class="caption">System.Info.MAC.Fetch</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>System specific routines for determing the MAC address and macros to help
sort things out at compile time.
</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:fetchNICs">fetchNICs</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]</li><li class="src short"><a href="#v:i_config">i_config</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:parser">parser</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]</li><li class="src short"><a href="#v:ifconfig">ifconfig</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]</li><li class="src short"><a href="#v:ipconfig">ipconfig</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]</li><li class="src short"><a href="#v:parseNIC_ifconfig">parseNIC_ifconfig</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</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>, <a href="Data-MAC.html#t:MAC">MAC</a>))</li><li class="src short"><a href="#v:parseNIC_ipconfig">parseNIC_ipconfig</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</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>, <a href="Data-MAC.html#t:MAC">MAC</a>))</li><li class="src short"><a href="#v:parseNICs">parseNICs</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</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>, <a href="Data-MAC.html#t:MAC">MAC</a>)) -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]</li><li class="src short"><a href="#v:parseMAC">parseMAC</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> u Identity (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Data-MAC.html#t:MAC">MAC</a>)</li><li class="src short"><a href="#v:parse-39-">parse'</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> [t] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> [t]</li><li class="src short"><a href="#v:maybeMAC">maybeMAC</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Data-MAC.html#t:MAC">MAC</a></li><li class="src short"><a href="#v:sepHex">sepHex</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> u Identity sep -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> u Identity [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a>]]</li><li class="src short"><a href="#v:manyAnyTill">manyAnyTill</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:skipManyTill">skipManyTill</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> a -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> b -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> b</li><li class="src short"><a href="#v:skipManyAnyTill">skipManyAnyTill</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> a -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> a</li><li class="src short"><a href="#v:nl">nl</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a>] u Identity <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:fetchNICs" class="def">fetchNICs</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]<a href="src/System-Info-MAC-Fetch.html#fetchNICs" class="link">Source</a></p><div class="doc"><p>Obtain a list containing the name and MAC of all NICs.
</p></div></div><div class="top"><p class="src"><a name="v:i_config" class="def">i_config</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/System-Info-MAC-Fetch.html#i_config" class="link">Source</a></p><div class="doc"><p>Run <code>ifconfig</code> or <code>ipconfig</code>, as appropriate, capturing its output.
</p></div></div><div class="top"><p class="src"><a name="v:parser" class="def">parser</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]<a href="src/System-Info-MAC-Fetch.html#parser" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ifconfig" class="def">ifconfig</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]<a href="src/System-Info-MAC-Fetch.html#ifconfig" class="link">Source</a></p><div class="doc"><p>Parses the output of Linux or BSD <code>ifconfig</code>.
</p></div></div><div class="top"><p class="src"><a name="v:ipconfig" class="def">ipconfig</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]<a href="src/System-Info-MAC-Fetch.html#ipconfig" class="link">Source</a></p><div class="doc"><p>Parses the output of Windows <code>ipconfig</code>.
</p></div></div><div class="top"><p class="src"><a name="v:parseNIC_ifconfig" class="def">parseNIC_ifconfig</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</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>, <a href="Data-MAC.html#t:MAC">MAC</a>))<a href="src/System-Info-MAC-Fetch.html#parseNIC_ifconfig" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parseNIC_ipconfig" class="def">parseNIC_ipconfig</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</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>, <a href="Data-MAC.html#t:MAC">MAC</a>))<a href="src/System-Info-MAC-Fetch.html#parseNIC_ipconfig" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parseNICs" class="def">parseNICs</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</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>, <a href="Data-MAC.html#t:MAC">MAC</a>)) -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="Data-MAC.html#t:MAC">MAC</a>)]<a href="src/System-Info-MAC-Fetch.html#parseNICs" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parseMAC" class="def">parseMAC</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> u Identity (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Data-MAC.html#t:MAC">MAC</a>)<a href="src/System-Info-MAC-Fetch.html#parseMAC" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parse-39-" class="def">parse'</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> [t] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> [t]<a href="src/System-Info-MAC-Fetch.html#parse%27" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maybeMAC" class="def">maybeMAC</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Data-MAC.html#t:MAC">MAC</a><a href="src/System-Info-MAC-Fetch.html#maybeMAC" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:sepHex" class="def">sepHex</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> u Identity sep -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> u Identity [[<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a>]]<a href="src/System-Info-MAC-Fetch.html#sepHex" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:manyAnyTill" class="def">manyAnyTill</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/System-Info-MAC-Fetch.html#manyAnyTill" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:skipManyTill" class="def">skipManyTill</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> a -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> b -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> b<a href="src/System-Info-MAC-Fetch.html#skipManyTill" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:skipManyAnyTill" class="def">skipManyAnyTill</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> a -> <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-String.html#t:Parser">Parser</a> a<a href="src/System-Info-MAC-Fetch.html#skipManyAnyTill" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nl" class="def">nl</a> :: <a href="/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-Prim.html#t:ParsecT">ParsecT</a> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a>] u Identity <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/System-Info-MAC-Fetch.html#nl" class="link">Source</a></p></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>
|