Added cabal and vim dir
@@ -0,0 +1,22 @@
|
||||
ConfigFile
|
||||
Copyright (C) 2004-2010 John Goerzen <jgoerzen@complete.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of either:
|
||||
|
||||
a) the GNU Lesser General Public License as published by the Free
|
||||
Software Foundation; either version 2.1 (see the file LGPL-2.1),
|
||||
or (at your option) any later version, or
|
||||
|
||||
b) the 3-clause BSD License (see the file BSD3).
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
If these licenses are unacceptable for your uses, please e-mail me;
|
||||
alternative terms can be negotiated for your project.
|
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title></title>
|
||||
<script src="haddock-util.js" type="text/javascript"></script>
|
||||
<script type="text/javascript"><!--
|
||||
/*
|
||||
|
||||
The synopsis frame needs to be updated using javascript, so we hide
|
||||
it by default and only show it if javascript is enabled.
|
||||
|
||||
TODO: provide some means to disable it.
|
||||
*/
|
||||
function load() {
|
||||
var d = document.getElementById("inner-fs");
|
||||
d.rows = "50%,50%";
|
||||
postReframe();
|
||||
}
|
||||
--></script>
|
||||
</head>
|
||||
<frameset id="outer-fs" cols="25%,75%" onload="load()">
|
||||
<frameset id="inner-fs" rows="100%,0%">
|
||||
<frame src="index-frames.html" name="modules" />
|
||||
<frame src="" name="synopsis" />
|
||||
</frameset>
|
||||
<frame src="index.html" name="main" />
|
||||
</frameset>
|
||||
</html>
|
@@ -0,0 +1,344 @@
|
||||
// Haddock JavaScript utilities
|
||||
|
||||
var rspace = /\s\s+/g,
|
||||
rtrim = /^\s+|\s+$/g;
|
||||
|
||||
function spaced(s) { return (" " + s + " ").replace(rspace, " "); }
|
||||
function trim(s) { return s.replace(rtrim, ""); }
|
||||
|
||||
function hasClass(elem, value) {
|
||||
var className = spaced(elem.className || "");
|
||||
return className.indexOf( " " + value + " " ) >= 0;
|
||||
}
|
||||
|
||||
function addClass(elem, value) {
|
||||
var className = spaced(elem.className || "");
|
||||
if ( className.indexOf( " " + value + " " ) < 0 ) {
|
||||
elem.className = trim(className + " " + value);
|
||||
}
|
||||
}
|
||||
|
||||
function removeClass(elem, value) {
|
||||
var className = spaced(elem.className || "");
|
||||
className = className.replace(" " + value + " ", " ");
|
||||
elem.className = trim(className);
|
||||
}
|
||||
|
||||
function toggleClass(elem, valueOn, valueOff, bool) {
|
||||
if (bool == null) { bool = ! hasClass(elem, valueOn); }
|
||||
if (bool) {
|
||||
removeClass(elem, valueOff);
|
||||
addClass(elem, valueOn);
|
||||
}
|
||||
else {
|
||||
removeClass(elem, valueOn);
|
||||
addClass(elem, valueOff);
|
||||
}
|
||||
return bool;
|
||||
}
|
||||
|
||||
|
||||
function makeClassToggle(valueOn, valueOff)
|
||||
{
|
||||
return function(elem, bool) {
|
||||
return toggleClass(elem, valueOn, valueOff, bool);
|
||||
}
|
||||
}
|
||||
|
||||
toggleShow = makeClassToggle("show", "hide");
|
||||
toggleCollapser = makeClassToggle("collapser", "expander");
|
||||
|
||||
function toggleSection(id)
|
||||
{
|
||||
var b = toggleShow(document.getElementById("section." + id));
|
||||
toggleCollapser(document.getElementById("control." + id), b);
|
||||
rememberCollapsed(id, b);
|
||||
return b;
|
||||
}
|
||||
|
||||
var collapsed = {};
|
||||
function rememberCollapsed(id, b)
|
||||
{
|
||||
if(b)
|
||||
delete collapsed[id]
|
||||
else
|
||||
collapsed[id] = null;
|
||||
|
||||
var sections = [];
|
||||
for(var i in collapsed)
|
||||
{
|
||||
if(collapsed.hasOwnProperty(i))
|
||||
sections.push(i);
|
||||
}
|
||||
// cookie specific to this page; don't use setCookie which sets path=/
|
||||
document.cookie = "collapsed=" + escape(sections.join('+'));
|
||||
}
|
||||
|
||||
function restoreCollapsed()
|
||||
{
|
||||
var cookie = getCookie("collapsed");
|
||||
if(!cookie)
|
||||
return;
|
||||
|
||||
var ids = cookie.split('+');
|
||||
for(var i in ids)
|
||||
{
|
||||
if(document.getElementById("section." + ids[i]))
|
||||
toggleSection(ids[i]);
|
||||
}
|
||||
}
|
||||
|
||||
function setCookie(name, value) {
|
||||
document.cookie = name + "=" + escape(value) + ";path=/;";
|
||||
}
|
||||
|
||||
function clearCookie(name) {
|
||||
document.cookie = name + "=;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;";
|
||||
}
|
||||
|
||||
function getCookie(name) {
|
||||
var nameEQ = name + "=";
|
||||
var ca = document.cookie.split(';');
|
||||
for(var i=0;i < ca.length;i++) {
|
||||
var c = ca[i];
|
||||
while (c.charAt(0)==' ') c = c.substring(1,c.length);
|
||||
if (c.indexOf(nameEQ) == 0) {
|
||||
return unescape(c.substring(nameEQ.length,c.length));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
var max_results = 75; // 50 is not enough to search for map in the base libraries
|
||||
var shown_range = null;
|
||||
var last_search = null;
|
||||
|
||||
function quick_search()
|
||||
{
|
||||
perform_search(false);
|
||||
}
|
||||
|
||||
function full_search()
|
||||
{
|
||||
perform_search(true);
|
||||
}
|
||||
|
||||
|
||||
function perform_search(full)
|
||||
{
|
||||
var text = document.getElementById("searchbox").value.toLowerCase();
|
||||
if (text == last_search && !full) return;
|
||||
last_search = text;
|
||||
|
||||
var table = document.getElementById("indexlist");
|
||||
var status = document.getElementById("searchmsg");
|
||||
var children = table.firstChild.childNodes;
|
||||
|
||||
// first figure out the first node with the prefix
|
||||
var first = bisect(-1);
|
||||
var last = (first == -1 ? -1 : bisect(1));
|
||||
|
||||
if (first == -1)
|
||||
{
|
||||
table.className = "";
|
||||
status.innerHTML = "No results found, displaying all";
|
||||
}
|
||||
else if (first == 0 && last == children.length - 1)
|
||||
{
|
||||
table.className = "";
|
||||
status.innerHTML = "";
|
||||
}
|
||||
else if (last - first >= max_results && !full)
|
||||
{
|
||||
table.className = "";
|
||||
status.innerHTML = "More than " + max_results + ", press Search to display";
|
||||
}
|
||||
else
|
||||
{
|
||||
// decide what you need to clear/show
|
||||
if (shown_range)
|
||||
setclass(shown_range[0], shown_range[1], "indexrow");
|
||||
setclass(first, last, "indexshow");
|
||||
shown_range = [first, last];
|
||||
table.className = "indexsearch";
|
||||
status.innerHTML = "";
|
||||
}
|
||||
|
||||
|
||||
function setclass(first, last, status)
|
||||
{
|
||||
for (var i = first; i <= last; i++)
|
||||
{
|
||||
children[i].className = status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// do a binary search, treating 0 as ...
|
||||
// return either -1 (no 0's found) or location of most far match
|
||||
function bisect(dir)
|
||||
{
|
||||
var first = 0, finish = children.length - 1;
|
||||
var mid, success = false;
|
||||
|
||||
while (finish - first > 3)
|
||||
{
|
||||
mid = Math.floor((finish + first) / 2);
|
||||
|
||||
var i = checkitem(mid);
|
||||
if (i == 0) i = dir;
|
||||
if (i == -1)
|
||||
finish = mid;
|
||||
else
|
||||
first = mid;
|
||||
}
|
||||
var a = (dir == 1 ? first : finish);
|
||||
var b = (dir == 1 ? finish : first);
|
||||
for (var i = b; i != a - dir; i -= dir)
|
||||
{
|
||||
if (checkitem(i) == 0) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
// from an index, decide what the result is
|
||||
// 0 = match, -1 is lower, 1 is higher
|
||||
function checkitem(i)
|
||||
{
|
||||
var s = getitem(i).toLowerCase().substr(0, text.length);
|
||||
if (s == text) return 0;
|
||||
else return (s > text ? -1 : 1);
|
||||
}
|
||||
|
||||
|
||||
// from an index, get its string
|
||||
// this abstracts over alternates
|
||||
function getitem(i)
|
||||
{
|
||||
for ( ; i >= 0; i--)
|
||||
{
|
||||
var s = children[i].firstChild.firstChild.data;
|
||||
if (s.indexOf(' ') == -1)
|
||||
return s;
|
||||
}
|
||||
return ""; // should never be reached
|
||||
}
|
||||
}
|
||||
|
||||
function setSynopsis(filename) {
|
||||
if (parent.window.synopsis) {
|
||||
if (parent.window.synopsis.location.replace) {
|
||||
// In Firefox this avoids adding the change to the history.
|
||||
parent.window.synopsis.location.replace(filename);
|
||||
} else {
|
||||
parent.window.synopsis.location = filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addMenuItem(html) {
|
||||
var menu = document.getElementById("page-menu");
|
||||
if (menu) {
|
||||
var btn = menu.firstChild.cloneNode(false);
|
||||
btn.innerHTML = html;
|
||||
menu.appendChild(btn);
|
||||
}
|
||||
}
|
||||
|
||||
function adjustForFrames() {
|
||||
var bodyCls;
|
||||
|
||||
if (parent.location.href == window.location.href) {
|
||||
// not in frames, so add Frames button
|
||||
addMenuItem("<a href='#' onclick='reframe();return true;'>Frames</a>");
|
||||
bodyCls = "no-frame";
|
||||
}
|
||||
else {
|
||||
bodyCls = "in-frame";
|
||||
}
|
||||
addClass(document.body, bodyCls);
|
||||
}
|
||||
|
||||
function reframe() {
|
||||
setCookie("haddock-reframe", document.URL);
|
||||
window.location = "frames.html";
|
||||
}
|
||||
|
||||
function postReframe() {
|
||||
var s = getCookie("haddock-reframe");
|
||||
if (s) {
|
||||
parent.window.main.location = s;
|
||||
clearCookie("haddock-reframe");
|
||||
}
|
||||
}
|
||||
|
||||
function styles() {
|
||||
var i, a, es = document.getElementsByTagName("link"), rs = [];
|
||||
for (i = 0; a = es[i]; i++) {
|
||||
if(a.rel.indexOf("style") != -1 && a.title) {
|
||||
rs.push(a);
|
||||
}
|
||||
}
|
||||
return rs;
|
||||
}
|
||||
|
||||
function addStyleMenu() {
|
||||
var as = styles();
|
||||
var i, a, btns = "";
|
||||
for(i=0; a = as[i]; i++) {
|
||||
btns += "<li><a href='#' onclick=\"setActiveStyleSheet('"
|
||||
+ a.title + "'); return false;\">"
|
||||
+ a.title + "</a></li>"
|
||||
}
|
||||
if (as.length > 1) {
|
||||
var h = "<div id='style-menu-holder'>"
|
||||
+ "<a href='#' onclick='styleMenu(); return false;'>Style ▾</a>"
|
||||
+ "<ul id='style-menu' class='hide'>" + btns + "</ul>"
|
||||
+ "</div>";
|
||||
addMenuItem(h);
|
||||
}
|
||||
}
|
||||
|
||||
function setActiveStyleSheet(title) {
|
||||
var as = styles();
|
||||
var i, a, found;
|
||||
for(i=0; a = as[i]; i++) {
|
||||
a.disabled = true;
|
||||
// need to do this always, some browsers are edge triggered
|
||||
if(a.title == title) {
|
||||
found = a;
|
||||
}
|
||||
}
|
||||
if (found) {
|
||||
found.disabled = false;
|
||||
setCookie("haddock-style", title);
|
||||
}
|
||||
else {
|
||||
as[0].disabled = false;
|
||||
clearCookie("haddock-style");
|
||||
}
|
||||
styleMenu(false);
|
||||
}
|
||||
|
||||
function resetStyle() {
|
||||
var s = getCookie("haddock-style");
|
||||
if (s) setActiveStyleSheet(s);
|
||||
}
|
||||
|
||||
|
||||
function styleMenu(show) {
|
||||
var m = document.getElementById('style-menu');
|
||||
if (m) toggleShow(m, show);
|
||||
}
|
||||
|
||||
|
||||
function pageLoad() {
|
||||
addStyleMenu();
|
||||
adjustForFrames();
|
||||
resetStyle();
|
||||
restoreCollapsed();
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,4 @@
|
||||
<!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>ConfigFile-1.1.4: Configuration file reading & writing</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-list"><p class="caption">Modules</p><ul><li class="module"><a href="Data-ConfigFile.html" target="main">Data.ConfigFile</a></li><li class="module"><a href="Data-ConfigFile-Monadic.html" target="main">Data.ConfigFile.Monadic</a></li><li class="module"><a href="Data-ConfigFile-Parser.html" target="main">Data.ConfigFile.Parser</a></li><li class="module"><a href="Data-ConfigFile-Types.html" target="main">Data.ConfigFile.Types</a></li></ul></div></body></html>
|
@@ -0,0 +1,12 @@
|
||||
<!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>ConfigFile-1.1.4: Configuration file reading & writing</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();};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">ConfigFile-1.1.4: Configuration file reading & writing</p></div><div id="content"><div id="description"><h1>ConfigFile-1.1.4: Configuration file reading & writing</h1><div class="doc"><p>Parser and writer for handling sectioned config files in
|
||||
Haskell.</p><p>The ConfigFile module works with configuration files in a standard
|
||||
format that is easy for the user to edit, easy for the programmer
|
||||
to work with, yet remains powerful and flexible. It is inspired by,
|
||||
and compatible with, Python's ConfigParser module. It uses files
|
||||
that resemble Windows .INI-style files, but with numerous
|
||||
improvements.</p><p>ConfigFile provides simple calls to both read and write config files.
|
||||
It's possible to make a config file parsable by this module,
|
||||
the Unix shell, and make.</p></div></div><div id="module-list"><p class="caption">Modules</p><ul><li><span id="control.n.1" class="module collapser" onclick="toggleSection('n.1')">Data</span><ul id="section.n.1" class="show"><li><span class="module"><span id="control.n.1.1" class="collapser" onclick="toggleSection('n.1.1')"> </span><a href="Data-ConfigFile.html">Data.ConfigFile</a></span><ul id="section.n.1.1" class="show"><li><span class="module"><a href="Data-ConfigFile-Monadic.html">Data.ConfigFile.Monadic</a></span></li><li><span class="module"><a href="Data-ConfigFile-Parser.html">Data.ConfigFile.Parser</a></span></li><li><span class="module"><a href="Data-ConfigFile-Types.html">Data.ConfigFile.Types</a></span></li></ul></li></ul></li></ul></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Data.ConfigFile.Monadic</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Data.ConfigFile.Monadic</p></div><div id="interface"><h1>Overview</h1><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:simpleAccess" target="main">simpleAccess</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:interpolatingAccess" target="main">interpolatingAccess</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:readfile" target="main">readfile</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:readhandle" target="main">readhandle</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:readstring" target="main">readstring</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:has_section" target="main">has_section</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:options" target="main">options</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:has_option" target="main">has_option</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:items" target="main">items</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:set" target="main">set</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:setshow" target="main">setshow</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:remove_option" target="main">remove_option</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:add_section" target="main">add_section</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Monadic.html#v:remove_section" target="main">remove_section</a></p></div></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Data.ConfigFile.Parser</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Data.ConfigFile.Parser</p></div><div id="interface"><div class="top"><p class="src"><a href="Data-ConfigFile-Parser.html#v:parse_string" target="main">parse_string</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Parser.html#v:parse_file" target="main">parse_file</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Parser.html#v:parse_handle" target="main">parse_handle</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile-Parser.html#v:interpmain" target="main">interpmain</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile-Parser.html#t:ParseOutput" target="main">ParseOutput</a></p></div></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Data.ConfigFile.Types</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Data.ConfigFile.Types</p></div><div id="interface"><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile-Types.html#t:CPOptions" target="main">CPOptions</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile-Types.html#t:CPData" target="main">CPData</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a href="Data-ConfigFile-Types.html#t:CPErrorData" target="main">CPErrorData</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile-Types.html#t:CPError" target="main">CPError</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a href="Data-ConfigFile-Types.html#t:ConfigParser" target="main">ConfigParser</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile-Types.html#t:SectionSpec" target="main">SectionSpec</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile-Types.html#t:OptionSpec" target="main">OptionSpec</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile-Types.html#t:ParseOutput" target="main">ParseOutput</a></p></div></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Data.ConfigFile</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Data.ConfigFile</p></div><div id="interface"><h1>Introduction</h1><h2>Features</h2><h2>History</h2><h1>Configuration File Format</h1><h2>White Space</h2><h2>Comments</h2><h2>Case Sensitivity</h2><h2>Interpolation</h2><h1>Usage Examples</h1><h2>Non-Monadic Usage</h2><h2>Error Monad Usage</h2><h2>Combined Error/IO Monad Usage</h2><h1>Types</h1><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile.html#t:SectionSpec" target="main">SectionSpec</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile.html#t:OptionSpec" target="main">OptionSpec</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a href="Data-ConfigFile.html#t:ConfigParser" target="main">ConfigParser</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a href="Data-ConfigFile.html#t:CPErrorData" target="main">CPErrorData</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Data-ConfigFile.html#t:CPError" target="main">CPError</a></p></div><h1>Initialization</h1><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:emptyCP" target="main">emptyCP</a></p></div><h1>Configuring the ConfigParser</h1><h2>Access Functions</h2><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:simpleAccess" target="main">simpleAccess</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:interpolatingAccess" target="main">interpolatingAccess</a></p></div><h1>Reading</h1><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:readfile" target="main">readfile</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:readhandle" target="main">readhandle</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:readstring" target="main">readstring</a></p></div><h1>Accessing Data</h1><div class="top"><p class="src"><span class="keyword">class</span> <a href="Data-ConfigFile.html#t:Get_C" target="main">Get_C</a> a</p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:sections" target="main">sections</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:has_section" target="main">has_section</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:options" target="main">options</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:has_option" target="main">has_option</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:items" target="main">items</a></p></div><h1>Modifying Data</h1><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:set" target="main">set</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:setshow" target="main">setshow</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:remove_option" target="main">remove_option</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:add_section" target="main">add_section</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:remove_section" target="main">remove_section</a></p></div><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:merge" target="main">merge</a></p></div><h1>Output Data</h1><div class="top"><p class="src"><a href="Data-ConfigFile.html#v:to_string" target="main">to_string</a></p></div></div></body></html>
|
After Width: | Height: | Size: 56 B |
@@ -0,0 +1,587 @@
|
||||
/* @group Fundamentals */
|
||||
|
||||
* { margin: 0; padding: 0 }
|
||||
|
||||
/* Is this portable? */
|
||||
html {
|
||||
background-color: white;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background: white;
|
||||
color: black;
|
||||
text-align: left;
|
||||
min-height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
margin: 0.8em 0 0.8em 2em;
|
||||
}
|
||||
|
||||
dl {
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
dd {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
a { text-decoration: none; }
|
||||
a[href]:link { color: rgb(196,69,29); }
|
||||
a[href]:visited { color: rgb(171,105,84); }
|
||||
a[href]:hover { text-decoration:underline; }
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Fonts & Sizes */
|
||||
|
||||
/* Basic technique & IE workarounds from YUI 3
|
||||
For reasons, see:
|
||||
http://yui.yahooapis.com/3.1.1/build/cssfonts/fonts.css
|
||||
*/
|
||||
|
||||
body {
|
||||
font:13px/1.4 sans-serif;
|
||||
*font-size:small; /* for IE */
|
||||
*font:x-small; /* for IE in quirks mode */
|
||||
}
|
||||
|
||||
h1 { font-size: 146.5%; /* 19pt */ }
|
||||
h2 { font-size: 131%; /* 17pt */ }
|
||||
h3 { font-size: 116%; /* 15pt */ }
|
||||
h4 { font-size: 100%; /* 13pt */ }
|
||||
h5 { font-size: 100%; /* 13pt */ }
|
||||
|
||||
select, input, button, textarea {
|
||||
font:99% sans-serif;
|
||||
}
|
||||
|
||||
table {
|
||||
font-size:inherit;
|
||||
font:100%;
|
||||
}
|
||||
|
||||
pre, code, kbd, samp, tt, .src {
|
||||
font-family:monospace;
|
||||
*font-size:108%;
|
||||
line-height: 124%;
|
||||
}
|
||||
|
||||
.links, .link {
|
||||
font-size: 85%; /* 11pt */
|
||||
}
|
||||
|
||||
#module-header .caption {
|
||||
font-size: 182%; /* 24pt */
|
||||
}
|
||||
|
||||
.info {
|
||||
font-size: 85%; /* 11pt */
|
||||
}
|
||||
|
||||
#table-of-contents, #synopsis {
|
||||
/* font-size: 85%; /* 11pt */
|
||||
}
|
||||
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Common */
|
||||
|
||||
.caption, h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: bold;
|
||||
color: rgb(78,98,114);
|
||||
margin: 0.8em 0 0.4em;
|
||||
}
|
||||
|
||||
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6 {
|
||||
margin-top: inherit;
|
||||
}
|
||||
|
||||
ul.links {
|
||||
list-style: none;
|
||||
text-align: left;
|
||||
float: right;
|
||||
display: inline-table;
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
|
||||
ul.links li {
|
||||
display: inline;
|
||||
border-left: 1px solid #d5d5d5;
|
||||
white-space: nowrap;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.links li a {
|
||||
padding: 0.2em 0.5em;
|
||||
}
|
||||
|
||||
.hide { display: none; }
|
||||
.show { display: inherit; }
|
||||
.clear { clear: both; }
|
||||
|
||||
.collapser {
|
||||
background-image: url(minus.gif);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.expander {
|
||||
background-image: url(plus.gif);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
p.caption.collapser,
|
||||
p.caption.expander {
|
||||
background-position: 0 0.4em;
|
||||
}
|
||||
.collapser, .expander {
|
||||
padding-left: 14px;
|
||||
margin-left: -14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 0.25em;
|
||||
margin: 0.8em 0;
|
||||
background: rgb(229,237,244);
|
||||
overflow: auto;
|
||||
border-bottom: 0.25em solid white;
|
||||
/* white border adds some space below the box to compensate
|
||||
for visual extra space that paragraphs have between baseline
|
||||
and the bounding box */
|
||||
}
|
||||
|
||||
.src {
|
||||
background: #f0f0f0;
|
||||
padding: 0.2em 0.5em;
|
||||
}
|
||||
|
||||
.keyword { font-weight: normal; }
|
||||
.def { font-weight: bold; }
|
||||
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Page Structure */
|
||||
|
||||
#content {
|
||||
margin: 0 auto;
|
||||
padding: 0 2em 6em;
|
||||
}
|
||||
|
||||
#package-header {
|
||||
background: rgb(41,56,69);
|
||||
border-top: 5px solid rgb(78,98,114);
|
||||
color: #ddd;
|
||||
padding: 0.2em;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#package-header .caption {
|
||||
background: url(hslogo-16.png) no-repeat 0em;
|
||||
color: white;
|
||||
margin: 0 2em;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
#package-header a:link, #package-header a:visited { color: white; }
|
||||
#package-header a:hover { background: rgb(78,98,114); }
|
||||
|
||||
#module-header .caption {
|
||||
color: rgb(78,98,114);
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
table.info {
|
||||
float: right;
|
||||
padding: 0.5em 1em;
|
||||
border: 1px solid #ddd;
|
||||
color: rgb(78,98,114);
|
||||
background-color: #fff;
|
||||
max-width: 40%;
|
||||
border-spacing: 0;
|
||||
position: relative;
|
||||
top: -0.5em;
|
||||
margin: 0 0 0 2em;
|
||||
}
|
||||
|
||||
.info th {
|
||||
padding: 0 1em 0 0;
|
||||
}
|
||||
|
||||
div#style-menu-holder {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#style-menu {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
overflow: visible;
|
||||
background: #374c5e;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
right: 0;
|
||||
padding: 0;
|
||||
top: 1.25em;
|
||||
}
|
||||
|
||||
#style-menu li {
|
||||
display: list-item;
|
||||
border-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #000;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#style-menu li + li {
|
||||
border-top: 1px solid #919191;
|
||||
}
|
||||
|
||||
#style-menu a {
|
||||
width: 6em;
|
||||
padding: 3px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#footer {
|
||||
background: #ddd;
|
||||
border-top: 1px solid #aaa;
|
||||
padding: 0.5em 0;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 3em;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Front Matter */
|
||||
|
||||
#table-of-contents {
|
||||
float: right;
|
||||
clear: right;
|
||||
background: #faf9dc;
|
||||
border: 1px solid #d8d7ad;
|
||||
padding: 0.5em 1em;
|
||||
max-width: 20em;
|
||||
margin: 0.5em 0 1em 1em;
|
||||
}
|
||||
|
||||
#table-of-contents .caption {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#table-of-contents ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#table-of-contents ul ul {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
#description .caption {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#synopsis {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.no-frame #synopsis {
|
||||
display: block;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
height: 80%;
|
||||
top: 10%;
|
||||
padding: 0;
|
||||
max-width: 75%;
|
||||
}
|
||||
|
||||
#synopsis .caption {
|
||||
float: left;
|
||||
width: 29px;
|
||||
color: rgba(255,255,255,0);
|
||||
height: 110px;
|
||||
margin: 0;
|
||||
font-size: 1px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#synopsis p.caption.collapser {
|
||||
background: url(synopsis.png) no-repeat -64px -8px;
|
||||
}
|
||||
|
||||
#synopsis p.caption.expander {
|
||||
background: url(synopsis.png) no-repeat 0px -8px;
|
||||
}
|
||||
|
||||
#synopsis ul {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
padding: 0.5em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#synopsis ul ul {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#synopsis ul,
|
||||
#synopsis ul li.src {
|
||||
background-color: #faf9dc;
|
||||
white-space: nowrap;
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Main Content */
|
||||
|
||||
#interface div.top { margin: 2em 0; }
|
||||
#interface h1 + div.top,
|
||||
#interface h2 + div.top,
|
||||
#interface h3 + div.top,
|
||||
#interface h4 + div.top,
|
||||
#interface h5 + div.top {
|
||||
margin-top: 1em;
|
||||
}
|
||||
#interface p.src .link {
|
||||
float: right;
|
||||
color: #919191;
|
||||
border-left: 1px solid #919191;
|
||||
background: #f0f0f0;
|
||||
padding: 0 0.5em 0.2em;
|
||||
margin: 0 -0.5em 0 0.5em;
|
||||
}
|
||||
|
||||
#interface td.src .link {
|
||||
float: right;
|
||||
color: #919191;
|
||||
border-left: 1px solid #919191;
|
||||
background: #f0f0f0;
|
||||
padding: 0 0.5em 0.2em;
|
||||
margin: 0 -0.5em 0 0.5em;
|
||||
}
|
||||
|
||||
#interface span.fixity {
|
||||
color: #919191;
|
||||
border-left: 1px solid #919191;
|
||||
padding: 0.2em 0.5em 0.2em 0.5em;
|
||||
margin: 0 -1em 0 1em;
|
||||
}
|
||||
|
||||
#interface span.rightedge {
|
||||
border-left: 1px solid #919191;
|
||||
padding: 0.2em 0 0.2em 0;
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
|
||||
#interface table { border-spacing: 2px; }
|
||||
#interface td {
|
||||
vertical-align: top;
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
#interface td.src {
|
||||
white-space: nowrap;
|
||||
}
|
||||
#interface td.doc p {
|
||||
margin: 0;
|
||||
}
|
||||
#interface td.doc p + p {
|
||||
margin-top: 0.8em;
|
||||
}
|
||||
|
||||
.subs dl {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.subs dt {
|
||||
float: left;
|
||||
clear: left;
|
||||
display: block;
|
||||
margin: 1px 0;
|
||||
}
|
||||
|
||||
.subs dd {
|
||||
float: right;
|
||||
width: 90%;
|
||||
display: block;
|
||||
padding-left: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.subs dd.empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.subs dd p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Render short-style data instances */
|
||||
.inst ul {
|
||||
height: 100%;
|
||||
padding: 0.5em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.inst, .inst li {
|
||||
list-style: none;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.top p.src {
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.subs, .doc {
|
||||
/* use this selector for one level of indent */
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
.warning {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.arguments {
|
||||
margin-top: -0.4em;
|
||||
}
|
||||
.arguments .caption {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fields { padding-left: 1em; }
|
||||
|
||||
.fields .caption { display: none; }
|
||||
|
||||
.fields p { margin: 0 0; }
|
||||
|
||||
/* this seems bulky to me
|
||||
.methods, .constructors {
|
||||
background: #f8f8f8;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
*/
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Auxillary Pages */
|
||||
|
||||
|
||||
.extension-list {
|
||||
list-style-type: none;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#mini {
|
||||
margin: 0 auto;
|
||||
padding: 0 1em 1em;
|
||||
}
|
||||
|
||||
#mini > * {
|
||||
font-size: 93%; /* 12pt */
|
||||
}
|
||||
|
||||
#mini #module-list .caption,
|
||||
#mini #module-header .caption {
|
||||
font-size: 125%; /* 15pt */
|
||||
}
|
||||
|
||||
#mini #interface h1,
|
||||
#mini #interface h2,
|
||||
#mini #interface h3,
|
||||
#mini #interface h4 {
|
||||
font-size: 109%; /* 13pt */
|
||||
margin: 1em 0 0;
|
||||
}
|
||||
|
||||
#mini #interface .top,
|
||||
#mini #interface .src {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#mini #module-list ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#alphabet ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.5em 0 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#alphabet li {
|
||||
display: inline;
|
||||
margin: 0 0.25em;
|
||||
}
|
||||
|
||||
#alphabet a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#index .caption,
|
||||
#module-list .caption { font-size: 131%; /* 17pt */ }
|
||||
|
||||
#index table {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
#index .src {
|
||||
font-weight: bold;
|
||||
}
|
||||
#index .alt {
|
||||
font-size: 77%; /* 10pt */
|
||||
font-style: italic;
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
#index td + td {
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
#module-list ul {
|
||||
list-style: none;
|
||||
margin: 0 0 0 2em;
|
||||
}
|
||||
|
||||
#module-list li {
|
||||
clear: right;
|
||||
}
|
||||
|
||||
#module-list span.collapser,
|
||||
#module-list span.expander {
|
||||
background-position: 0 0.3em;
|
||||
}
|
||||
|
||||
#module-list .package {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* @end */
|
After Width: | Height: | Size: 59 B |
After Width: | Height: | Size: 11 KiB |
29
cabal/share/doc/x86_64-osx-ghc-7.10.1/HUnit-1.2.5.2/LICENSE
Normal file
@@ -0,0 +1,29 @@
|
||||
HUnit is Copyright (c) Dean Herington, 2002, all rights reserved,
|
||||
and is distributed as free software under the following license.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions, and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions, and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- The names of the copyright holders may not be used to endorse or
|
||||
promote products derived from this software without specific prior
|
||||
written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,11 @@
|
||||
<!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>Test.HUnit.Lang</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_Test-HUnit-Lang.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HUnit-1.2.5.2: A unit testing framework for Haskell</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Test.HUnit.Lang</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Internals</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module abstracts the differences between implementations of
|
||||
Haskell (e.g., GHC, Hugs, and NHC).</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"><span class="keyword">type</span> <a href="#t:Assertion">Assertion</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:assertFailure">assertFailure</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="Test-HUnit-Lang.html#t:Assertion">Assertion</a></li><li class="src short"><a href="#v:performTestCase">performTestCase</a> :: <a href="Test-HUnit-Lang.html#t:Assertion">Assertion</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>))</li><li class="src short"><span class="keyword">data</span> <a href="#t:HUnitFailure">HUnitFailure</a> = <a href="#v:HUnitFailure">HUnitFailure</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Assertion" class="def">Assertion</a> = <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><div class="doc"><p>When an assertion is evaluated, it will output a message if and only if the
|
||||
assertion fails. </p><p>Test cases are composed of a sequence of one or more assertions.</p></div></div><div class="top"><p class="src"><a name="v:assertFailure" class="def">assertFailure</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>A message that is displayed with the assertion failure </p></td></tr><tr><td class="src">-> <a href="Test-HUnit-Lang.html#t:Assertion">Assertion</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Unconditionally signals that a failure has occured. All
|
||||
other assertions can be expressed with the form:</p><pre> if conditionIsMet
|
||||
then IO ()
|
||||
else assertFailure msg
|
||||
</pre></div></div><div class="top"><p class="src"><a name="v:performTestCase" class="def">performTestCase</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Test-HUnit-Lang.html#t:Assertion">Assertion</a></td><td class="doc"><p>an assertion to be made during the test case run </p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>))</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Performs a single test case. The meaning of the result is as follows:</p><dl><dt><code>Nothing</code></dt><dd>test case success<dl><dt><code>Just (True, msg)</code></dt><dd>test case failure with the given message</dd><dt><code>Just (False, msg)</code></dt><dd>test case error with the given message</dd></dl></dd></dl></div></div><h1 id="g:1">Internals</h1><div class="doc"><p><em>Note:</em> This is not part of the public API! It is exposed so that you can
|
||||
tinker with the internals of HUnit, but do not expect it to be stable!</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:HUnitFailure" class="def">HUnitFailure</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:HUnitFailure" class="def">HUnitFailure</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:HUnitFailure" class="caption collapser" onclick="toggleSection('i:HUnitFailure')">Instances</p><div id="section.i:HUnitFailure" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="Test-HUnit-Lang.html#t:HUnitFailure">HUnitFailure</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Test-HUnit-Lang.html#t:HUnitFailure">HUnitFailure</a></td><td class="doc empty"> </td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,9 @@
|
||||
<!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>Test.HUnit.Terminal</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_Test-HUnit-Terminal.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HUnit-1.2.5.2: A unit testing framework for Haskell</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Test.HUnit.Terminal</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module handles the complexities of writing information to the
|
||||
terminal, including modifying text in place.</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:terminalAppearance">terminalAppearance</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:terminalAppearance" class="def">terminalAppearance</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Simplifies the input string by interpreting <code>\r</code> and <code>\b</code> characters
|
||||
specially so that the result string has the same final (or <em>terminal</em>,
|
||||
pun intended) appearance as would the input string when written to a
|
||||
terminal that overwrites character positions following carriage
|
||||
returns and backspaces.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,36 @@
|
||||
<!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>Test.HUnit.Text</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_Test-HUnit-Text.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HUnit-1.2.5.2: A unit testing framework for Haskell</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Test.HUnit.Text</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Text-based test controller for running HUnit tests and reporting
|
||||
results as text, usually to a terminal.</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"><span class="keyword">data</span> <a href="#t:PutText">PutText</a> st = <a href="#v:PutText">PutText</a> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a> -> st -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> st) st</li><li class="src short"><a href="#v:putTextToHandle">putTextToHandle</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="Test-HUnit-Text.html#t:PutText">PutText</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:putTextToShowS">putTextToShowS</a> :: <a href="Test-HUnit-Text.html#t:PutText">PutText</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:ShowS">ShowS</a></li><li class="src short"><a href="#v:runTestText">runTestText</a> :: <a href="Test-HUnit-Text.html#t:PutText">PutText</a> st -> <a href="Test-HUnit-Base.html#t:Test">Test</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="Test-HUnit-Base.html#t:Counts">Counts</a>, st)</li><li class="src short"><a href="#v:showPath">showPath</a> :: <a href="Test-HUnit-Base.html#t:Path">Path</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:showCounts">showCounts</a> :: <a href="Test-HUnit-Base.html#t:Counts">Counts</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:runTestTT">runTestTT</a> :: <a href="Test-HUnit-Base.html#t:Test">Test</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="Test-HUnit-Base.html#t:Counts">Counts</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:PutText" class="def">PutText</a> st</p><div class="doc"><p>As the general text-based test controller (<code><a href="Test-HUnit-Text.html#v:runTestText">runTestText</a></code>) executes a
|
||||
test, it reports each test case start, error, and failure by
|
||||
constructing a string and passing it to the function embodied in a
|
||||
<code><a href="Test-HUnit-Text.html#t:PutText">PutText</a></code>. A report string is known as a "line", although it includes
|
||||
no line terminator; the function in a <code><a href="Test-HUnit-Text.html#t:PutText">PutText</a></code> is responsible for
|
||||
terminating lines appropriately. Besides the line, the function
|
||||
receives a flag indicating the intended "persistence" of the line:
|
||||
<code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#v:True">True</a></code> indicates that the line should be part of the final overall
|
||||
report; <code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#v:False">False</a></code> indicates that the line merely indicates progress of
|
||||
the test execution. Each progress line shows the current values of
|
||||
the cumulative test execution counts; a final, persistent line shows
|
||||
the final count values.</p><p>The <code><a href="Test-HUnit-Text.html#t:PutText">PutText</a></code> function is also passed, and returns, an arbitrary state
|
||||
value (called <code>st</code> here). The initial state value is given in the
|
||||
<code><a href="Test-HUnit-Text.html#t:PutText">PutText</a></code>; the final value is returned by <code><a href="Test-HUnit-Text.html#v:runTestText">runTestText</a></code>.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:PutText" class="def">PutText</a> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a> -> st -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> st) st</td><td class="doc empty"> </td></tr></table></div></div><div class="top"><p class="src"><a name="v:putTextToHandle" class="def">putTextToHandle</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>Write progress lines to handle? </p></td></tr><tr><td class="src">-> <a href="Test-HUnit-Text.html#t:PutText">PutText</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Two reporting schemes are defined here. <code>putTextToHandle</code> writes
|
||||
report lines to a given handle. <code><a href="Test-HUnit-Text.html#v:putTextToShowS">putTextToShowS</a></code> accumulates
|
||||
persistent lines for return as a whole by <code><a href="Test-HUnit-Text.html#v:runTestText">runTestText</a></code>.</p><p><code>putTextToHandle</code> writes persistent lines to the given handle,
|
||||
following each by a newline character. In addition, if the given flag
|
||||
is <code>True</code>, it writes progress lines to the handle as well. A progress
|
||||
line is written with no line termination, so that it can be
|
||||
overwritten by the next report line. As overwriting involves writing
|
||||
carriage return and blank characters, its proper effect is usually
|
||||
only obtained on terminal devices.</p></div></div><div class="top"><p class="src"><a name="v:putTextToShowS" class="def">putTextToShowS</a> :: <a href="Test-HUnit-Text.html#t:PutText">PutText</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:ShowS">ShowS</a></p><div class="doc"><p>Accumulates persistent lines (dropping progess lines) for return by
|
||||
<code><a href="Test-HUnit-Text.html#v:runTestText">runTestText</a></code>. The accumulated lines are represented by a
|
||||
<code><code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:ShowS">ShowS</a></code> (<code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></code> -> <code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></code>)</code> function whose first argument is the
|
||||
string to be appended to the accumulated report lines.</p></div></div><div class="top"><p class="src"><a name="v:runTestText" class="def">runTestText</a> :: <a href="Test-HUnit-Text.html#t:PutText">PutText</a> st -> <a href="Test-HUnit-Base.html#t:Test">Test</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="Test-HUnit-Base.html#t:Counts">Counts</a>, st)</p><div class="doc"><p>Executes a test, processing each report line according to the given
|
||||
reporting scheme. The reporting scheme's state is threaded through calls
|
||||
to the reporting scheme's function and finally returned, along with final
|
||||
count values.</p></div></div><div class="top"><p class="src"><a name="v:showPath" class="def">showPath</a> :: <a href="Test-HUnit-Base.html#t:Path">Path</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Converts a test case path to a string, separating adjacent elements by
|
||||
the colon (':'). An element of the path is quoted (as with <code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#v:show">show</a></code>) when
|
||||
there is potential ambiguity.</p></div></div><div class="top"><p class="src"><a name="v:showCounts" class="def">showCounts</a> :: <a href="Test-HUnit-Base.html#t:Counts">Counts</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Converts test execution counts to a string.</p></div></div><div class="top"><p class="src"><a name="v:runTestTT" class="def">runTestTT</a> :: <a href="Test-HUnit-Base.html#t:Test">Test</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="Test-HUnit-Base.html#t:Counts">Counts</a></p><div class="doc"><p>Provides the "standard" text-based test controller. Reporting is made to
|
||||
standard error, and progress reports are included. For possible
|
||||
programmatic use, the final counts are returned.</p><p>The "TT" in the name suggests "Text-based reporting to the Terminal".</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,37 @@
|
||||
<!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>Test.HUnit</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_Test-HUnit.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HUnit-1.2.5.2: A unit testing framework for Haskell</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Test.HUnit</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>HUnit is a unit testing framework for Haskell, inspired by the JUnit tool
|
||||
for Java. This guide describes how to use HUnit, assuming you are familiar
|
||||
with Haskell, though not necessarily with JUnit.</p><p>In the Haskell module where your tests will reside, import module
|
||||
<code>Test.HUnit</code>:</p><pre> import Test.HUnit
|
||||
</pre><p>Define test cases as appropriate:</p><pre> test1 = TestCase (assertEqual "for (foo 3)," (1,2) (foo 3))
|
||||
test2 = TestCase (do (x,y) <- partA 3
|
||||
assertEqual "for the first result of partA," 5 x
|
||||
b <- partB y
|
||||
assertBool ("(partB " ++ show y ++ ") failed") b)
|
||||
</pre><p>Name the test cases and group them together:</p><pre> tests = TestList [TestLabel "test1" test1, TestLabel "test2" test2]
|
||||
</pre><p>Run the tests as a group. At a Haskell interpreter prompt, apply the function
|
||||
<code>runTestTT</code> to the collected tests. (The <em>TT</em> suggests <em>T</em>ext orientation
|
||||
with output to the <em>T</em>erminal.)</p><pre> > runTestTT tests
|
||||
Cases: 2 Tried: 2 Errors: 0 Failures: 0
|
||||
>
|
||||
</pre><p>If the tests are proving their worth, you might see:</p><pre> > runTestTT tests
|
||||
### Failure in: 0:test1
|
||||
for (foo 3),
|
||||
expected: (1,2)
|
||||
but got: (1,3)
|
||||
Cases: 2 Tried: 2 Errors: 0 Failures: 1
|
||||
>
|
||||
</pre><p>You can specify tests even more succinctly using operators and overloaded
|
||||
functions that HUnit provides:</p><pre> tests = test [ "test1" ~: "(foo 3)" ~: (1,2) ~=? (foo 3),
|
||||
"test2" ~: do (x, y) <- partA 3
|
||||
assertEqual "for the first result of partA," 5 x
|
||||
partB y @? "(partB " ++ show y ++ ") failed" ]
|
||||
</pre><p>Assuming the same test failures as before, you would see:</p><pre> > runTestTT tests
|
||||
### Failure in: 0:test1:(foo 3)
|
||||
expected: (1,2)
|
||||
but got: (1,3)
|
||||
Cases: 2 Tried: 2 Errors: 0 Failures: 1
|
||||
>
|
||||
</pre></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src">module <a href="Test-HUnit-Base.html">Test.HUnit.Base</a></p></div><div class="top"><p class="src">module <a href="Test-HUnit-Text.html">Test.HUnit.Text</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title></title>
|
||||
<script src="haddock-util.js" type="text/javascript"></script>
|
||||
<script type="text/javascript"><!--
|
||||
/*
|
||||
|
||||
The synopsis frame needs to be updated using javascript, so we hide
|
||||
it by default and only show it if javascript is enabled.
|
||||
|
||||
TODO: provide some means to disable it.
|
||||
*/
|
||||
function load() {
|
||||
var d = document.getElementById("inner-fs");
|
||||
d.rows = "50%,50%";
|
||||
postReframe();
|
||||
}
|
||||
--></script>
|
||||
</head>
|
||||
<frameset id="outer-fs" cols="25%,75%" onload="load()">
|
||||
<frameset id="inner-fs" rows="100%,0%">
|
||||
<frame src="index-frames.html" name="modules" />
|
||||
<frame src="" name="synopsis" />
|
||||
</frameset>
|
||||
<frame src="index.html" name="main" />
|
||||
</frameset>
|
||||
</html>
|
@@ -0,0 +1,344 @@
|
||||
// Haddock JavaScript utilities
|
||||
|
||||
var rspace = /\s\s+/g,
|
||||
rtrim = /^\s+|\s+$/g;
|
||||
|
||||
function spaced(s) { return (" " + s + " ").replace(rspace, " "); }
|
||||
function trim(s) { return s.replace(rtrim, ""); }
|
||||
|
||||
function hasClass(elem, value) {
|
||||
var className = spaced(elem.className || "");
|
||||
return className.indexOf( " " + value + " " ) >= 0;
|
||||
}
|
||||
|
||||
function addClass(elem, value) {
|
||||
var className = spaced(elem.className || "");
|
||||
if ( className.indexOf( " " + value + " " ) < 0 ) {
|
||||
elem.className = trim(className + " " + value);
|
||||
}
|
||||
}
|
||||
|
||||
function removeClass(elem, value) {
|
||||
var className = spaced(elem.className || "");
|
||||
className = className.replace(" " + value + " ", " ");
|
||||
elem.className = trim(className);
|
||||
}
|
||||
|
||||
function toggleClass(elem, valueOn, valueOff, bool) {
|
||||
if (bool == null) { bool = ! hasClass(elem, valueOn); }
|
||||
if (bool) {
|
||||
removeClass(elem, valueOff);
|
||||
addClass(elem, valueOn);
|
||||
}
|
||||
else {
|
||||
removeClass(elem, valueOn);
|
||||
addClass(elem, valueOff);
|
||||
}
|
||||
return bool;
|
||||
}
|
||||
|
||||
|
||||
function makeClassToggle(valueOn, valueOff)
|
||||
{
|
||||
return function(elem, bool) {
|
||||
return toggleClass(elem, valueOn, valueOff, bool);
|
||||
}
|
||||
}
|
||||
|
||||
toggleShow = makeClassToggle("show", "hide");
|
||||
toggleCollapser = makeClassToggle("collapser", "expander");
|
||||
|
||||
function toggleSection(id)
|
||||
{
|
||||
var b = toggleShow(document.getElementById("section." + id));
|
||||
toggleCollapser(document.getElementById("control." + id), b);
|
||||
rememberCollapsed(id, b);
|
||||
return b;
|
||||
}
|
||||
|
||||
var collapsed = {};
|
||||
function rememberCollapsed(id, b)
|
||||
{
|
||||
if(b)
|
||||
delete collapsed[id]
|
||||
else
|
||||
collapsed[id] = null;
|
||||
|
||||
var sections = [];
|
||||
for(var i in collapsed)
|
||||
{
|
||||
if(collapsed.hasOwnProperty(i))
|
||||
sections.push(i);
|
||||
}
|
||||
// cookie specific to this page; don't use setCookie which sets path=/
|
||||
document.cookie = "collapsed=" + escape(sections.join('+'));
|
||||
}
|
||||
|
||||
function restoreCollapsed()
|
||||
{
|
||||
var cookie = getCookie("collapsed");
|
||||
if(!cookie)
|
||||
return;
|
||||
|
||||
var ids = cookie.split('+');
|
||||
for(var i in ids)
|
||||
{
|
||||
if(document.getElementById("section." + ids[i]))
|
||||
toggleSection(ids[i]);
|
||||
}
|
||||
}
|
||||
|
||||
function setCookie(name, value) {
|
||||
document.cookie = name + "=" + escape(value) + ";path=/;";
|
||||
}
|
||||
|
||||
function clearCookie(name) {
|
||||
document.cookie = name + "=;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;";
|
||||
}
|
||||
|
||||
function getCookie(name) {
|
||||
var nameEQ = name + "=";
|
||||
var ca = document.cookie.split(';');
|
||||
for(var i=0;i < ca.length;i++) {
|
||||
var c = ca[i];
|
||||
while (c.charAt(0)==' ') c = c.substring(1,c.length);
|
||||
if (c.indexOf(nameEQ) == 0) {
|
||||
return unescape(c.substring(nameEQ.length,c.length));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
var max_results = 75; // 50 is not enough to search for map in the base libraries
|
||||
var shown_range = null;
|
||||
var last_search = null;
|
||||
|
||||
function quick_search()
|
||||
{
|
||||
perform_search(false);
|
||||
}
|
||||
|
||||
function full_search()
|
||||
{
|
||||
perform_search(true);
|
||||
}
|
||||
|
||||
|
||||
function perform_search(full)
|
||||
{
|
||||
var text = document.getElementById("searchbox").value.toLowerCase();
|
||||
if (text == last_search && !full) return;
|
||||
last_search = text;
|
||||
|
||||
var table = document.getElementById("indexlist");
|
||||
var status = document.getElementById("searchmsg");
|
||||
var children = table.firstChild.childNodes;
|
||||
|
||||
// first figure out the first node with the prefix
|
||||
var first = bisect(-1);
|
||||
var last = (first == -1 ? -1 : bisect(1));
|
||||
|
||||
if (first == -1)
|
||||
{
|
||||
table.className = "";
|
||||
status.innerHTML = "No results found, displaying all";
|
||||
}
|
||||
else if (first == 0 && last == children.length - 1)
|
||||
{
|
||||
table.className = "";
|
||||
status.innerHTML = "";
|
||||
}
|
||||
else if (last - first >= max_results && !full)
|
||||
{
|
||||
table.className = "";
|
||||
status.innerHTML = "More than " + max_results + ", press Search to display";
|
||||
}
|
||||
else
|
||||
{
|
||||
// decide what you need to clear/show
|
||||
if (shown_range)
|
||||
setclass(shown_range[0], shown_range[1], "indexrow");
|
||||
setclass(first, last, "indexshow");
|
||||
shown_range = [first, last];
|
||||
table.className = "indexsearch";
|
||||
status.innerHTML = "";
|
||||
}
|
||||
|
||||
|
||||
function setclass(first, last, status)
|
||||
{
|
||||
for (var i = first; i <= last; i++)
|
||||
{
|
||||
children[i].className = status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// do a binary search, treating 0 as ...
|
||||
// return either -1 (no 0's found) or location of most far match
|
||||
function bisect(dir)
|
||||
{
|
||||
var first = 0, finish = children.length - 1;
|
||||
var mid, success = false;
|
||||
|
||||
while (finish - first > 3)
|
||||
{
|
||||
mid = Math.floor((finish + first) / 2);
|
||||
|
||||
var i = checkitem(mid);
|
||||
if (i == 0) i = dir;
|
||||
if (i == -1)
|
||||
finish = mid;
|
||||
else
|
||||
first = mid;
|
||||
}
|
||||
var a = (dir == 1 ? first : finish);
|
||||
var b = (dir == 1 ? finish : first);
|
||||
for (var i = b; i != a - dir; i -= dir)
|
||||
{
|
||||
if (checkitem(i) == 0) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
// from an index, decide what the result is
|
||||
// 0 = match, -1 is lower, 1 is higher
|
||||
function checkitem(i)
|
||||
{
|
||||
var s = getitem(i).toLowerCase().substr(0, text.length);
|
||||
if (s == text) return 0;
|
||||
else return (s > text ? -1 : 1);
|
||||
}
|
||||
|
||||
|
||||
// from an index, get its string
|
||||
// this abstracts over alternates
|
||||
function getitem(i)
|
||||
{
|
||||
for ( ; i >= 0; i--)
|
||||
{
|
||||
var s = children[i].firstChild.firstChild.data;
|
||||
if (s.indexOf(' ') == -1)
|
||||
return s;
|
||||
}
|
||||
return ""; // should never be reached
|
||||
}
|
||||
}
|
||||
|
||||
function setSynopsis(filename) {
|
||||
if (parent.window.synopsis) {
|
||||
if (parent.window.synopsis.location.replace) {
|
||||
// In Firefox this avoids adding the change to the history.
|
||||
parent.window.synopsis.location.replace(filename);
|
||||
} else {
|
||||
parent.window.synopsis.location = filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addMenuItem(html) {
|
||||
var menu = document.getElementById("page-menu");
|
||||
if (menu) {
|
||||
var btn = menu.firstChild.cloneNode(false);
|
||||
btn.innerHTML = html;
|
||||
menu.appendChild(btn);
|
||||
}
|
||||
}
|
||||
|
||||
function adjustForFrames() {
|
||||
var bodyCls;
|
||||
|
||||
if (parent.location.href == window.location.href) {
|
||||
// not in frames, so add Frames button
|
||||
addMenuItem("<a href='#' onclick='reframe();return true;'>Frames</a>");
|
||||
bodyCls = "no-frame";
|
||||
}
|
||||
else {
|
||||
bodyCls = "in-frame";
|
||||
}
|
||||
addClass(document.body, bodyCls);
|
||||
}
|
||||
|
||||
function reframe() {
|
||||
setCookie("haddock-reframe", document.URL);
|
||||
window.location = "frames.html";
|
||||
}
|
||||
|
||||
function postReframe() {
|
||||
var s = getCookie("haddock-reframe");
|
||||
if (s) {
|
||||
parent.window.main.location = s;
|
||||
clearCookie("haddock-reframe");
|
||||
}
|
||||
}
|
||||
|
||||
function styles() {
|
||||
var i, a, es = document.getElementsByTagName("link"), rs = [];
|
||||
for (i = 0; a = es[i]; i++) {
|
||||
if(a.rel.indexOf("style") != -1 && a.title) {
|
||||
rs.push(a);
|
||||
}
|
||||
}
|
||||
return rs;
|
||||
}
|
||||
|
||||
function addStyleMenu() {
|
||||
var as = styles();
|
||||
var i, a, btns = "";
|
||||
for(i=0; a = as[i]; i++) {
|
||||
btns += "<li><a href='#' onclick=\"setActiveStyleSheet('"
|
||||
+ a.title + "'); return false;\">"
|
||||
+ a.title + "</a></li>"
|
||||
}
|
||||
if (as.length > 1) {
|
||||
var h = "<div id='style-menu-holder'>"
|
||||
+ "<a href='#' onclick='styleMenu(); return false;'>Style ▾</a>"
|
||||
+ "<ul id='style-menu' class='hide'>" + btns + "</ul>"
|
||||
+ "</div>";
|
||||
addMenuItem(h);
|
||||
}
|
||||
}
|
||||
|
||||
function setActiveStyleSheet(title) {
|
||||
var as = styles();
|
||||
var i, a, found;
|
||||
for(i=0; a = as[i]; i++) {
|
||||
a.disabled = true;
|
||||
// need to do this always, some browsers are edge triggered
|
||||
if(a.title == title) {
|
||||
found = a;
|
||||
}
|
||||
}
|
||||
if (found) {
|
||||
found.disabled = false;
|
||||
setCookie("haddock-style", title);
|
||||
}
|
||||
else {
|
||||
as[0].disabled = false;
|
||||
clearCookie("haddock-style");
|
||||
}
|
||||
styleMenu(false);
|
||||
}
|
||||
|
||||
function resetStyle() {
|
||||
var s = getCookie("haddock-style");
|
||||
if (s) setActiveStyleSheet(s);
|
||||
}
|
||||
|
||||
|
||||
function styleMenu(show) {
|
||||
var m = document.getElementById('style-menu');
|
||||
if (m) toggleShow(m, show);
|
||||
}
|
||||
|
||||
|
||||
function pageLoad() {
|
||||
addStyleMenu();
|
||||
adjustForFrames();
|
||||
resetStyle();
|
||||
restoreCollapsed();
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,4 @@
|
||||
<!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>HUnit-1.2.5.2: A unit testing framework for Haskell</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-list"><p class="caption">Modules</p><ul><li class="module"><a href="Test-HUnit.html" target="main">Test.HUnit</a></li><li class="module"><a href="Test-HUnit-Base.html" target="main">Test.HUnit.Base</a></li><li class="module"><a href="Test-HUnit-Lang.html" target="main">Test.HUnit.Lang</a></li><li class="module"><a href="Test-HUnit-Terminal.html" target="main">Test.HUnit.Terminal</a></li><li class="module"><a href="Test-HUnit-Text.html" target="main">Test.HUnit.Text</a></li></ul></div></body></html>
|
@@ -0,0 +1,5 @@
|
||||
<!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>HUnit-1.2.5.2: A unit testing framework for Haskell</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();};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HUnit-1.2.5.2: A unit testing framework for Haskell</p></div><div id="content"><div id="description"><h1>HUnit-1.2.5.2: A unit testing framework for Haskell</h1><div class="doc"><p>HUnit is a unit testing framework for Haskell, inspired by the
|
||||
JUnit tool for Java, see: <a href="http://www.junit.org">http://www.junit.org</a>.</p></div></div><div id="module-list"><p class="caption">Modules</p><ul><li><span id="control.n.1" class="module collapser" onclick="toggleSection('n.1')">Test</span><ul id="section.n.1" class="show"><li><span class="module"><span id="control.n.1.1" class="collapser" onclick="toggleSection('n.1.1')"> </span><a href="Test-HUnit.html">Test.HUnit</a></span><ul id="section.n.1.1" class="show"><li><span class="module"><a href="Test-HUnit-Base.html">Test.HUnit.Base</a></span></li><li><span class="module"><a href="Test-HUnit-Lang.html">Test.HUnit.Lang</a></span></li><li><span class="module"><a href="Test-HUnit-Terminal.html">Test.HUnit.Terminal</a></span></li><li><span class="module"><a href="Test-HUnit-Text.html">Test.HUnit.Text</a></span></li></ul></li></ul></li></ul></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Test.HUnit.Base</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Test.HUnit.Base</p></div><div id="interface"><h2>Declaring tests</h2><div class="top"><p class="src"><span class="keyword">data</span> <a href="Test-HUnit-Base.html#t:Test" target="main">Test</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:-126--61--63-" target="main">(~=?)</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:-126--63--61-" target="main">(~?=)</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:-126-:" target="main">(~:)</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:-126--63-" target="main">(~?)</a></p></div><h2>Making assertions</h2><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:assertFailure" target="main">assertFailure</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:assertBool" target="main">assertBool</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:assertEqual" target="main">assertEqual</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:assertString" target="main">assertString</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Test-HUnit-Base.html#t:Assertion" target="main">Assertion</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:-64--61--63-" target="main">(@=?)</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:-64--63--61-" target="main">(@?=)</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:-64--63-" target="main">(@?)</a></p></div><h2>Extending the assertion functionality</h2><div class="top"><p class="src"><span class="keyword">class</span> <a href="Test-HUnit-Base.html#t:Assertable" target="main">Assertable</a> t</p></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Test-HUnit-Base.html#t:ListAssertable" target="main">ListAssertable</a> t</p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Test-HUnit-Base.html#t:AssertionPredicate" target="main">AssertionPredicate</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Test-HUnit-Base.html#t:AssertionPredicable" target="main">AssertionPredicable</a> t</p></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Test-HUnit-Base.html#t:Testable" target="main">Testable</a> t</p></div><h2>Test execution</h2><div class="top"><p class="src"><span class="keyword">data</span> <a href="Test-HUnit-Base.html#t:State" target="main">State</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a href="Test-HUnit-Base.html#t:Counts" target="main">Counts</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Test-HUnit-Base.html#t:Path" target="main">Path</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a href="Test-HUnit-Base.html#t:Node" target="main">Node</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:testCasePaths" target="main">testCasePaths</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:testCaseCount" target="main">testCaseCount</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Test-HUnit-Base.html#t:ReportStart" target="main">ReportStart</a> us</p></div><div class="top"><p class="src"><span class="keyword">type</span> <a href="Test-HUnit-Base.html#t:ReportProblem" target="main">ReportProblem</a> us</p></div><div class="top"><p class="src"><a href="Test-HUnit-Base.html#v:performTest" target="main">performTest</a></p></div></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Test.HUnit.Lang</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Test.HUnit.Lang</p></div><div id="interface"><div class="top"><p class="src"><span class="keyword">type</span> <a href="Test-HUnit-Lang.html#t:Assertion" target="main">Assertion</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Lang.html#v:assertFailure" target="main">assertFailure</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Lang.html#v:performTestCase" target="main">performTestCase</a></p></div><h1>Internals</h1><div class="top"><p class="src"><span class="keyword">data</span> <a href="Test-HUnit-Lang.html#t:HUnitFailure" target="main">HUnitFailure</a></p></div></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Test.HUnit.Terminal</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Test.HUnit.Terminal</p></div><div id="interface"><div class="top"><p class="src"><a href="Test-HUnit-Terminal.html#v:terminalAppearance" target="main">terminalAppearance</a></p></div></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Test.HUnit.Text</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Test.HUnit.Text</p></div><div id="interface"><div class="top"><p class="src"><span class="keyword">data</span> <a href="Test-HUnit-Text.html#t:PutText" target="main">PutText</a> st</p></div><div class="top"><p class="src"><a href="Test-HUnit-Text.html#v:putTextToHandle" target="main">putTextToHandle</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Text.html#v:putTextToShowS" target="main">putTextToShowS</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Text.html#v:runTestText" target="main">runTestText</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Text.html#v:showPath" target="main">showPath</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Text.html#v:showCounts" target="main">showCounts</a></p></div><div class="top"><p class="src"><a href="Test-HUnit-Text.html#v:runTestTT" target="main">runTestTT</a></p></div></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Test.HUnit</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();};
|
||||
//]]>
|
||||
</script></head><body id="mini"><div id="module-header"><p class="caption">Test.HUnit</p></div><div id="interface"></div></body></html>
|
After Width: | Height: | Size: 56 B |
@@ -0,0 +1,587 @@
|
||||
/* @group Fundamentals */
|
||||
|
||||
* { margin: 0; padding: 0 }
|
||||
|
||||
/* Is this portable? */
|
||||
html {
|
||||
background-color: white;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background: white;
|
||||
color: black;
|
||||
text-align: left;
|
||||
min-height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
margin: 0.8em 0 0.8em 2em;
|
||||
}
|
||||
|
||||
dl {
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
dd {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
a { text-decoration: none; }
|
||||
a[href]:link { color: rgb(196,69,29); }
|
||||
a[href]:visited { color: rgb(171,105,84); }
|
||||
a[href]:hover { text-decoration:underline; }
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Fonts & Sizes */
|
||||
|
||||
/* Basic technique & IE workarounds from YUI 3
|
||||
For reasons, see:
|
||||
http://yui.yahooapis.com/3.1.1/build/cssfonts/fonts.css
|
||||
*/
|
||||
|
||||
body {
|
||||
font:13px/1.4 sans-serif;
|
||||
*font-size:small; /* for IE */
|
||||
*font:x-small; /* for IE in quirks mode */
|
||||
}
|
||||
|
||||
h1 { font-size: 146.5%; /* 19pt */ }
|
||||
h2 { font-size: 131%; /* 17pt */ }
|
||||
h3 { font-size: 116%; /* 15pt */ }
|
||||
h4 { font-size: 100%; /* 13pt */ }
|
||||
h5 { font-size: 100%; /* 13pt */ }
|
||||
|
||||
select, input, button, textarea {
|
||||
font:99% sans-serif;
|
||||
}
|
||||
|
||||
table {
|
||||
font-size:inherit;
|
||||
font:100%;
|
||||
}
|
||||
|
||||
pre, code, kbd, samp, tt, .src {
|
||||
font-family:monospace;
|
||||
*font-size:108%;
|
||||
line-height: 124%;
|
||||
}
|
||||
|
||||
.links, .link {
|
||||
font-size: 85%; /* 11pt */
|
||||
}
|
||||
|
||||
#module-header .caption {
|
||||
font-size: 182%; /* 24pt */
|
||||
}
|
||||
|
||||
.info {
|
||||
font-size: 85%; /* 11pt */
|
||||
}
|
||||
|
||||
#table-of-contents, #synopsis {
|
||||
/* font-size: 85%; /* 11pt */
|
||||
}
|
||||
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Common */
|
||||
|
||||
.caption, h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: bold;
|
||||
color: rgb(78,98,114);
|
||||
margin: 0.8em 0 0.4em;
|
||||
}
|
||||
|
||||
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6 {
|
||||
margin-top: inherit;
|
||||
}
|
||||
|
||||
ul.links {
|
||||
list-style: none;
|
||||
text-align: left;
|
||||
float: right;
|
||||
display: inline-table;
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
|
||||
ul.links li {
|
||||
display: inline;
|
||||
border-left: 1px solid #d5d5d5;
|
||||
white-space: nowrap;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.links li a {
|
||||
padding: 0.2em 0.5em;
|
||||
}
|
||||
|
||||
.hide { display: none; }
|
||||
.show { display: inherit; }
|
||||
.clear { clear: both; }
|
||||
|
||||
.collapser {
|
||||
background-image: url(minus.gif);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.expander {
|
||||
background-image: url(plus.gif);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
p.caption.collapser,
|
||||
p.caption.expander {
|
||||
background-position: 0 0.4em;
|
||||
}
|
||||
.collapser, .expander {
|
||||
padding-left: 14px;
|
||||
margin-left: -14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 0.25em;
|
||||
margin: 0.8em 0;
|
||||
background: rgb(229,237,244);
|
||||
overflow: auto;
|
||||
border-bottom: 0.25em solid white;
|
||||
/* white border adds some space below the box to compensate
|
||||
for visual extra space that paragraphs have between baseline
|
||||
and the bounding box */
|
||||
}
|
||||
|
||||
.src {
|
||||
background: #f0f0f0;
|
||||
padding: 0.2em 0.5em;
|
||||
}
|
||||
|
||||
.keyword { font-weight: normal; }
|
||||
.def { font-weight: bold; }
|
||||
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Page Structure */
|
||||
|
||||
#content {
|
||||
margin: 0 auto;
|
||||
padding: 0 2em 6em;
|
||||
}
|
||||
|
||||
#package-header {
|
||||
background: rgb(41,56,69);
|
||||
border-top: 5px solid rgb(78,98,114);
|
||||
color: #ddd;
|
||||
padding: 0.2em;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#package-header .caption {
|
||||
background: url(hslogo-16.png) no-repeat 0em;
|
||||
color: white;
|
||||
margin: 0 2em;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
#package-header a:link, #package-header a:visited { color: white; }
|
||||
#package-header a:hover { background: rgb(78,98,114); }
|
||||
|
||||
#module-header .caption {
|
||||
color: rgb(78,98,114);
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
table.info {
|
||||
float: right;
|
||||
padding: 0.5em 1em;
|
||||
border: 1px solid #ddd;
|
||||
color: rgb(78,98,114);
|
||||
background-color: #fff;
|
||||
max-width: 40%;
|
||||
border-spacing: 0;
|
||||
position: relative;
|
||||
top: -0.5em;
|
||||
margin: 0 0 0 2em;
|
||||
}
|
||||
|
||||
.info th {
|
||||
padding: 0 1em 0 0;
|
||||
}
|
||||
|
||||
div#style-menu-holder {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#style-menu {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
overflow: visible;
|
||||
background: #374c5e;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
right: 0;
|
||||
padding: 0;
|
||||
top: 1.25em;
|
||||
}
|
||||
|
||||
#style-menu li {
|
||||
display: list-item;
|
||||
border-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #000;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#style-menu li + li {
|
||||
border-top: 1px solid #919191;
|
||||
}
|
||||
|
||||
#style-menu a {
|
||||
width: 6em;
|
||||
padding: 3px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#footer {
|
||||
background: #ddd;
|
||||
border-top: 1px solid #aaa;
|
||||
padding: 0.5em 0;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 3em;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Front Matter */
|
||||
|
||||
#table-of-contents {
|
||||
float: right;
|
||||
clear: right;
|
||||
background: #faf9dc;
|
||||
border: 1px solid #d8d7ad;
|
||||
padding: 0.5em 1em;
|
||||
max-width: 20em;
|
||||
margin: 0.5em 0 1em 1em;
|
||||
}
|
||||
|
||||
#table-of-contents .caption {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#table-of-contents ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#table-of-contents ul ul {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
#description .caption {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#synopsis {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.no-frame #synopsis {
|
||||
display: block;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
height: 80%;
|
||||
top: 10%;
|
||||
padding: 0;
|
||||
max-width: 75%;
|
||||
}
|
||||
|
||||
#synopsis .caption {
|
||||
float: left;
|
||||
width: 29px;
|
||||
color: rgba(255,255,255,0);
|
||||
height: 110px;
|
||||
margin: 0;
|
||||
font-size: 1px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#synopsis p.caption.collapser {
|
||||
background: url(synopsis.png) no-repeat -64px -8px;
|
||||
}
|
||||
|
||||
#synopsis p.caption.expander {
|
||||
background: url(synopsis.png) no-repeat 0px -8px;
|
||||
}
|
||||
|
||||
#synopsis ul {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
padding: 0.5em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#synopsis ul ul {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#synopsis ul,
|
||||
#synopsis ul li.src {
|
||||
background-color: #faf9dc;
|
||||
white-space: nowrap;
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Main Content */
|
||||
|
||||
#interface div.top { margin: 2em 0; }
|
||||
#interface h1 + div.top,
|
||||
#interface h2 + div.top,
|
||||
#interface h3 + div.top,
|
||||
#interface h4 + div.top,
|
||||
#interface h5 + div.top {
|
||||
margin-top: 1em;
|
||||
}
|
||||
#interface p.src .link {
|
||||
float: right;
|
||||
color: #919191;
|
||||
border-left: 1px solid #919191;
|
||||
background: #f0f0f0;
|
||||
padding: 0 0.5em 0.2em;
|
||||
margin: 0 -0.5em 0 0.5em;
|
||||
}
|
||||
|
||||
#interface td.src .link {
|
||||
float: right;
|
||||
color: #919191;
|
||||
border-left: 1px solid #919191;
|
||||
background: #f0f0f0;
|
||||
padding: 0 0.5em 0.2em;
|
||||
margin: 0 -0.5em 0 0.5em;
|
||||
}
|
||||
|
||||
#interface span.fixity {
|
||||
color: #919191;
|
||||
border-left: 1px solid #919191;
|
||||
padding: 0.2em 0.5em 0.2em 0.5em;
|
||||
margin: 0 -1em 0 1em;
|
||||
}
|
||||
|
||||
#interface span.rightedge {
|
||||
border-left: 1px solid #919191;
|
||||
padding: 0.2em 0 0.2em 0;
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
|
||||
#interface table { border-spacing: 2px; }
|
||||
#interface td {
|
||||
vertical-align: top;
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
#interface td.src {
|
||||
white-space: nowrap;
|
||||
}
|
||||
#interface td.doc p {
|
||||
margin: 0;
|
||||
}
|
||||
#interface td.doc p + p {
|
||||
margin-top: 0.8em;
|
||||
}
|
||||
|
||||
.subs dl {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.subs dt {
|
||||
float: left;
|
||||
clear: left;
|
||||
display: block;
|
||||
margin: 1px 0;
|
||||
}
|
||||
|
||||
.subs dd {
|
||||
float: right;
|
||||
width: 90%;
|
||||
display: block;
|
||||
padding-left: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.subs dd.empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.subs dd p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Render short-style data instances */
|
||||
.inst ul {
|
||||
height: 100%;
|
||||
padding: 0.5em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.inst, .inst li {
|
||||
list-style: none;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.top p.src {
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.subs, .doc {
|
||||
/* use this selector for one level of indent */
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
.warning {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.arguments {
|
||||
margin-top: -0.4em;
|
||||
}
|
||||
.arguments .caption {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fields { padding-left: 1em; }
|
||||
|
||||
.fields .caption { display: none; }
|
||||
|
||||
.fields p { margin: 0 0; }
|
||||
|
||||
/* this seems bulky to me
|
||||
.methods, .constructors {
|
||||
background: #f8f8f8;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
*/
|
||||
|
||||
/* @end */
|
||||
|
||||
/* @group Auxillary Pages */
|
||||
|
||||
|
||||
.extension-list {
|
||||
list-style-type: none;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#mini {
|
||||
margin: 0 auto;
|
||||
padding: 0 1em 1em;
|
||||
}
|
||||
|
||||
#mini > * {
|
||||
font-size: 93%; /* 12pt */
|
||||
}
|
||||
|
||||
#mini #module-list .caption,
|
||||
#mini #module-header .caption {
|
||||
font-size: 125%; /* 15pt */
|
||||
}
|
||||
|
||||
#mini #interface h1,
|
||||
#mini #interface h2,
|
||||
#mini #interface h3,
|
||||
#mini #interface h4 {
|
||||
font-size: 109%; /* 13pt */
|
||||
margin: 1em 0 0;
|
||||
}
|
||||
|
||||
#mini #interface .top,
|
||||
#mini #interface .src {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#mini #module-list ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#alphabet ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.5em 0 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#alphabet li {
|
||||
display: inline;
|
||||
margin: 0 0.25em;
|
||||
}
|
||||
|
||||
#alphabet a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#index .caption,
|
||||
#module-list .caption { font-size: 131%; /* 17pt */ }
|
||||
|
||||
#index table {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
#index .src {
|
||||
font-weight: bold;
|
||||
}
|
||||
#index .alt {
|
||||
font-size: 77%; /* 10pt */
|
||||
font-style: italic;
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
#index td + td {
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
#module-list ul {
|
||||
list-style: none;
|
||||
margin: 0 0 0 2em;
|
||||
}
|
||||
|
||||
#module-list li {
|
||||
clear: right;
|
||||
}
|
||||
|
||||
#module-list span.collapser,
|
||||
#module-list span.expander {
|
||||
background-position: 0 0.3em;
|
||||
}
|
||||
|
||||
#module-list .package {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* @end */
|
After Width: | Height: | Size: 59 B |
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,88 @@
|
||||
Copyright (c) 2004 - 2011 John Goerzen
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this
|
||||
list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
|
||||
* Neither the name of John Goerzen nor the names of its
|
||||
contributors may be used to endorse or promote products derived from this
|
||||
software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
============================================================================
|
||||
Special Notes for Included Code
|
||||
============================================================================
|
||||
|
||||
If you split out the parts originally from other authors, and use them
|
||||
completely independently of the rest of the library, you may treat them
|
||||
under the licenses shown below.
|
||||
|
||||
----------------------------------------------------
|
||||
Portions of System.Path come from Volker Wysk's HsShellScript
|
||||
library, version 2.1.0. That code is Copyright (c) 2004 Volker Wysk
|
||||
and was originally licensed under the GNU LGPL 2.1. Volker gave permission
|
||||
on Aug. 10, 2011, to John Goerzen to relicense it under the same 3-clause
|
||||
BSD license as MissingH itself.
|
||||
|
||||
----------------------------------------------------
|
||||
Data.Hash.CRC32.Posix is
|
||||
(C) 2002 HardCore SoftWare, Doug Hoyte
|
||||
and is "distributed under the terms of the GNU GPL." This license is
|
||||
the same as the main license for MissingH.
|
||||
|
||||
The code was obtained from
|
||||
http://cvs.sourceforge.net/viewcvs.py/haskell-libs/libs/crypto/crc32.hs
|
||||
|
||||
----------------------------------------------------
|
||||
Data.Compression.Inflate is
|
||||
Copyright 2004 Ian Lynagh <igloo@earth.li>
|
||||
Licence: 3 clause BSD.
|
||||
|
||||
Debian GNU/Linux users may find the 3-clause BSD license at
|
||||
/usr/share/common-licenses/BSD. Alternatively, you may find it at
|
||||
3rd-party-licenses/BSD. Please note that the University of California
|
||||
has no claim on this code; simply substitute Ian Lynagh for the
|
||||
University wherever it may occur in that file.
|
||||
|
||||
The code was obtained from
|
||||
http://urchin.earth.li/darcs/ian/inflate/Inflate.lhs
|
||||
----------------------------------------------------
|
||||
Data.Hash.MD5* is
|
||||
Copyright 2001 Ian Lynagh <igloo@earth.li>
|
||||
Licence: GPL or 3 clause BSD
|
||||
|
||||
Debian GNU/Linux users may find the 3-clause BSD license at
|
||||
/usr/share/common-licenses/BSD. Alternatively, you may find it at
|
||||
3rd-party-licenses/BSD. Please note that the University of California
|
||||
has no claim on this code; simply substitute Ian Lynagh for the
|
||||
University wherever it may occur in that file.
|
||||
|
||||
The code was obtained from
|
||||
http://web.comlab.ox.ac.uk/oucl/work/ian.lynagh/md5/
|
||||
|
||||
----------------------------------------------------
|
||||
System.Time.Utils.ParseDate is from
|
||||
http://www.dtek.chalmers.se/~d00bring/projects.html
|
||||
|
||||
Copyright (c) Bj<F6>rn Bringert
|
||||
License: GNU General Public License, version 2
|
||||
|
||||
I (John Goerzen) have modified only the module name and Haddock
|
||||
comments at the top of it.
|
@@ -0,0 +1,6 @@
|
||||
<!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>Control.Concurrent.Thread.Utils</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_Control-Concurrent-Thread-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Control.Concurrent.Thread.Utils</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">I/O utilities</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides various helpful utilities for dealing with threads.</p><p>Written by John Goerzen, jgoerzen@complete.org</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:runInThread">runInThread</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> a -> (a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> b) -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Control-Concurrent.html#t:ThreadId">ThreadId</a></li></ul></div><div id="interface"><h1 id="g:1">I/O utilities</h1><div class="top"><p class="src"><a name="v:runInThread" class="def">runInThread</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> a -> (a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> b) -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Control-Concurrent.html#t:ThreadId">ThreadId</a></p><div class="doc"><p>Takes a IO action and a function. The IO action will be called in a
|
||||
separate thread. When it is completed, the specified function is called with
|
||||
its result. This is a simple way of doing callbacks. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,22 @@
|
||||
<!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>Data.BinPacking</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_Data-BinPacking.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2008-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.BinPacking</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Tools for packing into bins</p><p>Written by John Goerzen, jgoerzen@complete.org</p><p>This module is designed to solve this type of problem: Given a bunch of
|
||||
objects of varying sizes, what is the best possible way to pack them into
|
||||
fixed-size bins? This can be used, for instance, by the datapacker program
|
||||
to pack files onto CDs or DVDs; by manufacturing environments to pack
|
||||
physical items into physicl bins; etc.</p><p>A description of bin packing algorithms can be found at
|
||||
<a href="http://en.wikipedia.org/wiki/Bin_packing_problem">http://en.wikipedia.org/wiki/Bin_packing_problem</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"><span class="keyword">type</span> <a href="#t:BinPacker">BinPacker</a> = (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> obj) => [size] -> [(size, obj)] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> (<a href="Data-BinPacking.html#t:BinPackerError">BinPackerError</a> size obj) [[(size, obj)]]</li><li class="src short"><span class="keyword">data</span> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> obj) => <a href="#t:BinPackerError">BinPackerError</a> size obj<ul class="subs"><li>= <a href="#v:BPTooFewBins">BPTooFewBins</a> [(size, obj)]</li><li>| <a href="#v:BPSizeTooLarge">BPSizeTooLarge</a> size (size, obj)</li><li>| <a href="#v:BPOther">BPOther</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></li><li class="src short"><a href="#v:packByOrder">packByOrder</a> :: <a href="Data-BinPacking.html#t:BinPacker">BinPacker</a></li><li class="src short"><a href="#v:packLargeFirst">packLargeFirst</a> :: <a href="Data-BinPacking.html#t:BinPacker">BinPacker</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:BinPacker" class="def">BinPacker</a> = (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> obj) => [size] -> [(size, obj)] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> (<a href="Data-BinPacking.html#t:BinPackerError">BinPackerError</a> size obj) [[(size, obj)]]</p><div class="doc"><p>The primary type for bin-packing functions.</p><p>These functions take a list of size of bins. If every bin is the same size,
|
||||
you can pass <code>repeat binSize</code> to pass an infinite list of bins if the
|
||||
same size. Any surplus bins will simply be ignored. </p><pre>[size] is the sizes of bins
|
||||
[(size, obj)] is the sizes and objects
|
||||
result is Either error or results</pre></div></div><div class="top"><p class="src"><span class="keyword">data</span> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> obj) => <a name="t:BinPackerError" class="def">BinPackerError</a> size obj</p><div class="doc"><p>Potential errors returned as Left values by <code><a href="Data-BinPacking.html#t:BinPacker">BinPacker</a></code> functions.
|
||||
Calling <code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#v:show">show</a></code> on this value will produce a nice error message suitable for
|
||||
display. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:BPTooFewBins" class="def">BPTooFewBins</a> [(size, obj)]</td><td class="doc"><p>Ran out of bins; attached value is the list of objects that do not fit</p></td></tr><tr><td class="src"><a name="v:BPSizeTooLarge" class="def">BPSizeTooLarge</a> size (size, obj)</td><td class="doc"><p>Bin size1 exceeded by at least the given object and size</p></td></tr><tr><td class="src"><a name="v:BPOther" class="def">BPOther</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Other error</p></td></tr></table></div><div class="subs instances"><p id="control.i:BinPackerError" class="caption collapser" onclick="toggleSection('i:BinPackerError')">Instances</p><div id="section.i:BinPackerError" class="show"><table><tr><td class="src">(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> obj, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> obj) => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Data-BinPacking.html#t:BinPackerError">BinPackerError</a> size obj)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> obj, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> obj) => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> (<a href="Data-BinPacking.html#t:BinPackerError">BinPackerError</a> size obj)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> obj) => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> (<a href="Data-BinPacking.html#t:BinPackerError">BinPackerError</a> size obj)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> size, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> obj) => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/transformers-0.4.2.0/Control-Monad-Trans-Error.html#t:Error">Error</a> (<a href="Data-BinPacking.html#t:BinPackerError">BinPackerError</a> size obj)</td><td class="doc"><p>Let us use this as part of the Either monad </p></td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:packByOrder" class="def">packByOrder</a> :: <a href="Data-BinPacking.html#t:BinPacker">BinPacker</a></p><div class="doc"><p>Pack objects into bins, preserving order. Objects will be taken from the
|
||||
input list one by one, and added to each bin until the bin is full. Work will
|
||||
then proceed on the next bin. No attempt is made to optimize allocations to
|
||||
bins. This is the simplest and most naive bin-packing algorithm, but
|
||||
may not make very good use of bin space. </p></div></div><div class="top"><p class="src"><a name="v:packLargeFirst" class="def">packLargeFirst</a> :: <a href="Data-BinPacking.html#t:BinPacker">BinPacker</a></p><div class="doc"><p>Pack objects into bins. For each bin, start with the largest objects,
|
||||
and keep packing the largest object from the remainder until no object can
|
||||
be found to put in the bin. This is substantially more efficient than
|
||||
<code><a href="Data-BinPacking.html#v:packByOrder">packByOrder</a></code>, but requires sorting the input. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,5 @@
|
||||
<!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>Data.Bits.Utils</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_Data-Bits-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable to platforms with rawSystem</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Bits.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Bit-related utilities</p><p>Written by John Goerzen, jgoerzen@complete.org</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:getBytes">getBytes</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integral">Integral</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Bounded">Bounded</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bits.html#t:Bits">Bits</a> a) => a -> [a]</li><li class="src short"><a href="#v:fromBytes">fromBytes</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bits.html#t:Bits">Bits</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> a) => [a] -> a</li><li class="src short"><a href="#v:c2w8">c2w8</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word8">Word8</a></li><li class="src short"><a href="#v:s2w8">s2w8</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word8">Word8</a>]</li><li class="src short"><a href="#v:w82c">w82c</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:w82s">w82s</a> :: [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word8">Word8</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:getBytes" class="def">getBytes</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integral">Integral</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Bounded">Bounded</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bits.html#t:Bits">Bits</a> a) => a -> [a]</p><div class="doc"><p>Returns a list representing the bytes that comprise a data type.</p><p>Example:</p><pre>getBytes (0x12345678::Int) -> [0x12, 0x34, 0x56, 0x78]</pre></div></div><div class="top"><p class="src"><a name="v:fromBytes" class="def">fromBytes</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bits.html#t:Bits">Bits</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> a) => [a] -> a</p><div class="doc"><p>The opposite of <code><a href="Data-Bits-Utils.html#v:getBytes">getBytes</a></code>, this function builds a number based on
|
||||
its component bytes.</p><p>Results are undefined if any components of the input list are > 0xff!</p></div></div><div class="top"><p class="src"><a name="v:c2w8" class="def">c2w8</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word8">Word8</a></p><div class="doc"><p>Converts a Char to a Word8. </p></div></div><div class="top"><p class="src"><a name="v:s2w8" class="def">s2w8</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word8">Word8</a>]</p><div class="doc"><p>Converts a String to a [Word8]. </p></div></div><div class="top"><p class="src"><a name="v:w82c" class="def">w82c</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a></p><div class="doc"><p>Converts a Word8 to a Char. </p></div></div><div class="top"><p class="src"><a name="v:w82s" class="def">w82s</a> :: [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word8">Word8</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Converts a [Word8] to a String. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,24 @@
|
||||
<!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>Data.CSV</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_Data-CSV.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.CSV</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Haskell Parsec parsers for comma-separated value (CSV) files.</p><p>Written by John Goerzen, jgoerzen@complete.org</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:csvFile">csvFile</a> :: CharParser st [[<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]]</li><li class="src short"><a href="#v:genCsvFile">genCsvFile</a> :: [[<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:csvFile" class="def">csvFile</a> :: CharParser st [[<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]]</p><div class="doc"><p>Parse a Comma-Separated Value (CSV) file. The return value is a list of
|
||||
lines; each line is a list of cells; and each cell is a String.</p><p>Please note that CSV files may have a different number of cells on each line.
|
||||
Also, it is impossible to distinguish a CSV line that has a call with no data
|
||||
from a CSV line that has no cells.</p><p>Here are some examples:</p><pre>Input (literal strings) Parses As (Haskell String syntax)
|
||||
-------------------------------- ---------------------------------
|
||||
1,2,3 [["1", "2", "3"]]
|
||||
|
||||
l1 [["l1"], ["l2"]]
|
||||
l2
|
||||
|
||||
(empty line) [[""]]
|
||||
|
||||
NQ,"Quoted" [["NQ", "Quoted"]]
|
||||
|
||||
NQ,"Embedded""Quote" [["NQ", "Embedded\"Quote"]]</pre><p>To parse a String, you might use:</p><pre>import Text.ParserCombinators.Parsec
|
||||
import Data.String.CSV
|
||||
....
|
||||
parse csvFile "" mystring</pre><p>To parse a file, you might instead use:</p><pre>do result <- parseFromFile csvFile "/path/to/file"</pre><p>Please note that the result of parsing will be of type
|
||||
(Either ParseError [[String]]). A Left result indicates an error.
|
||||
For more details, see the Parsec information.</p></div></div><div class="top"><p class="src"><a name="v:genCsvFile" class="def">genCsvFile</a> :: [[<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Generate CSV data for a file. The resulting string can be
|
||||
written out to disk directly. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,6 @@
|
||||
<!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>Data.Compression.Inflate</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_Data-Compression-Inflate.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004 Ian Lynagh </td></tr><tr><th>License</th><td>3-clause BSD</td></tr><tr><th>Maintainer</th><td>Ian Lynagh, </td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Compression.Inflate</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Maintainer : <a href="igloo@earth.li">igloo@earth.li</a>
|
||||
Stability : provisional
|
||||
Portability: portable</p><p>Inflate algorithm implementation</p><p>Copyright (C) 2004 Ian Lynagh</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:inflate_string">inflate_string</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:inflate_string_remainder">inflate_string_remainder</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:inflate">inflate</a> :: [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Int.html#t:Int">Int</a>] -> (<a href="Data-Compression-Inflate.html#t:Output">Output</a>, [<a href="Data-Compression-Inflate.html#t:Bit">Bit</a>])</li><li class="src short"><span class="keyword">type</span> <a href="#t:Output">Output</a> = [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a>]</li><li class="src short"><span class="keyword">data</span> <a href="#t:Bit">Bit</a></li><li class="src short"><a href="#v:bits_to_word32">bits_to_word32</a> :: [<a href="Data-Compression-Inflate.html#t:Bit">Bit</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:inflate_string" class="def">inflate_string</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p></div><div class="top"><p class="src"><a name="v:inflate_string_remainder" class="def">inflate_string_remainder</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>)</p><div class="doc"><p>Returns (Data, Remainder)</p></div></div><div class="top"><p class="src"><a name="v:inflate" class="def">inflate</a> :: [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Int.html#t:Int">Int</a>] -> (<a href="Data-Compression-Inflate.html#t:Output">Output</a>, [<a href="Data-Compression-Inflate.html#t:Bit">Bit</a>])</p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Output" class="def">Output</a> = [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a>]</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Bit" class="def">Bit</a></p><div class="subs instances"><p id="control.i:Bit" class="caption collapser" onclick="toggleSection('i:Bit')">Instances</p><div id="section.i:Bit" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Compression-Inflate.html#t:Bit">Bit</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="Data-Compression-Inflate.html#t:Bit">Bit</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:bits_to_word32" class="def">bits_to_word32</a> :: [<a href="Data-Compression-Inflate.html#t:Bit">Bit</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,7 @@
|
||||
<!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>Data.Either.Utils</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_Data-Either-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Either.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Utilities for working with the Either data type</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:maybeToEither">maybeToEither</a> :: MonadError e m => e -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> m a</li><li class="src short"><a href="#v:forceEither">forceEither</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> e => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> e a -> a</li><li class="src short"><a href="#v:forceEitherMsg">forceEitherMsg</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> e => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> e a -> a</li><li class="src short"><a href="#v:eitherToMonadError">eitherToMonadError</a> :: MonadError e m => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> e a -> m a</li><li class="src short"><a href="#v:fromLeft">fromLeft</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> a b -> a</li><li class="src short"><a href="#v:fromRight">fromRight</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> a b -> b</li><li class="src short"><a href="#v:fromEither">fromEither</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> a a -> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:maybeToEither" class="def">maybeToEither</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: MonadError e m</td><td class="doc empty"> </td></tr><tr><td class="src">=> e</td><td class="doc"><p>(Left e) will be returned if the Maybe value is Nothing</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a</td><td class="doc"><p>(Right a) will be returned if this is (Just a)</p></td></tr><tr><td class="src">-> m a</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Converts a Maybe value to an Either value, using the supplied parameter
|
||||
as the Left value if the Maybe is Nothing.</p><p>This function can be interpreted as:</p><pre>maybeToEither :: e -> Maybe a -> Either e a</pre><p>Its definition is given as it is so that it can be used in the Error and related monads.</p></div></div><div class="top"><p class="src"><a name="v:forceEither" class="def">forceEither</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> e => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> e a -> a</p><div class="doc"><p>Pulls a <a href="Right.html">Right</a> value out of an Either value. If the Either value is
|
||||
Left, raises an exception with "error". </p></div></div><div class="top"><p class="src"><a name="v:forceEitherMsg" class="def">forceEitherMsg</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> e => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> e a -> a</p><div class="doc"><p>Like <code><a href="Data-Either-Utils.html#v:forceEither">forceEither</a></code>, but can raise a specific message with the error. </p></div></div><div class="top"><p class="src"><a name="v:eitherToMonadError" class="def">eitherToMonadError</a> :: MonadError e m => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> e a -> m a</p><div class="doc"><p>Takes an either and transforms it into something of the more generic
|
||||
MonadError class. </p></div></div><div class="top"><p class="src"><a name="v:fromLeft" class="def">fromLeft</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> a b -> a</p><div class="doc"><p>Take a Left to a value, crashes on a Right</p></div></div><div class="top"><p class="src"><a name="v:fromRight" class="def">fromRight</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> a b -> b</p><div class="doc"><p>Take a Right to a value, crashes on a Left</p></div></div><div class="top"><p class="src"><a name="v:fromEither" class="def">fromEither</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Either.html#t:Either">Either</a> a a -> a</p><div class="doc"><p>Take an Either, and return the value inside it</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,6 @@
|
||||
<!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>Data.Hash.CRC32.GZip</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_Data-Hash-CRC32-GZip.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Hash.CRC32.GZip</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>CRC32 checksumming using the GZIP/PKZIP algorithm as used in both
|
||||
ISO 3309 and section 8.1.1.6.2 of ITU-T V.42 and referenced in
|
||||
RFC1952.</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:update_crc" class="def">update_crc</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div><div class="top"><p class="src"><a name="v:update_crc_list" class="def">update_crc_list</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a> -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div><div class="top"><p class="src"><a name="v:calc_crc32" class="def">calc_crc32</a> :: [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div><div class="top"><p class="src"><a name="v:gzipcrctab" class="def">gzipcrctab</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/array-0.5.1.0/Data-Array.html#t:Array">Array</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,5 @@
|
||||
<!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>Data.Hash.CRC32.Posix</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_Data-Hash-CRC32-Posix.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2002 HardCore SoftWare, Doug Hoyte</td></tr><tr><th>License</th><td>GNU GPL</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Hash.CRC32.Posix</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>CRC32 checksumming using POSIX 1003.2-1992 algorithm for the polynomial { 32 26
|
||||
23 22 16 12 11 10 8 7 5 4 2 1 }, also defined in ISO 8802-3: 1989.</p><p>Copyright (c) 2002 HardCore SoftWare, Doug Hoyte</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:iter_crc32" class="def">iter_crc32</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div><div class="top"><p class="src"><a name="v:calc_crc32" class="def">calc_crc32</a> :: [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div><div class="top"><p class="src"><a name="v:crc32" class="def">crc32</a> :: [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Char.html#t:Char">Char</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div><div class="top"><p class="src"><a name="v:crctab" class="def">crctab</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/array-0.5.1.0/Data-Array.html#t:Array">Array</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Word.html#t:Word32">Word32</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Data.Hash.MD5.Zord64_HARD</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_Data-Hash-MD5-Zord64_HARD.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Hash.MD5.Zord64_HARD</p></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Zord64" class="def">Zord64</a></p><div class="subs instances"><p id="control.i:Zord64" class="caption collapser" onclick="toggleSection('i:Zord64')">Instances</p><div id="section.i:Zord64" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Bounded">Bounded</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Enum">Enum</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integral">Integral</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Real">Real</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bits.html#t:Bits">Bits</a> <a href="Data-Hash-MD5-Zord64_HARD.html#t:Zord64">Zord64</a></td><td class="doc empty"> </td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,6 @@
|
||||
<!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>Data.Maybe.Utils</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_Data-Maybe-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Maybe.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Utilities for working with the Either data type</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:forceMaybe">forceMaybe</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> a</li><li class="src short"><a href="#v:forceMaybeMsg">forceMaybeMsg</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:forceMaybe" class="def">forceMaybe</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> a</p><div class="doc"><p>Pulls a Just value out of a Maybe value. If the Maybe value is
|
||||
Nothing, raises an exception with error. </p></div></div><div class="top"><p class="src"><a name="v:forceMaybeMsg" class="def">forceMaybeMsg</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> a</p><div class="doc"><p>Like <code><a href="Data-Maybe-Utils.html#v:forceMaybe">forceMaybe</a></code>, but lets you customize the error message raised if
|
||||
Nothing is supplied. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>Data.Tuple.Utils</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_Data-Tuple-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Tuple.Utils</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Extraction</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides various helpful utilities for dealing with lists.</p><p>Written by Neil Mitchell, <a href="http://www.cs.york.ac.uk/~ndm/">http://www.cs.york.ac.uk/~ndm/</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:fst3">fst3</a> :: (a, b, c) -> a</li><li class="src short"><a href="#v:snd3">snd3</a> :: (a, b, c) -> b</li><li class="src short"><a href="#v:thd3">thd3</a> :: (a, b, c) -> c</li></ul></div><div id="interface"><h1 id="g:1">Extraction</h1><div class="top"><p class="src"><a name="v:fst3" class="def">fst3</a> :: (a, b, c) -> a</p><div class="doc"><p>Take the first item out of a 3 element tuple</p></div></div><div class="top"><p class="src"><a name="v:snd3" class="def">snd3</a> :: (a, b, c) -> b</p><div class="doc"><p>Take the second item out of a 3 element tuple</p></div></div><div class="top"><p class="src"><a name="v:thd3" class="def">thd3</a> :: (a, b, c) -> c</p><div class="doc"><p>Take the third item out of a 3 element tuple</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,9 @@
|
||||
<!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>Network.Email.Sendmail</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_Network-Email-Sendmail.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Network.Email.Sendmail</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This Haskell module provides an interface to transmitting a mail message.</p><p>This is not compatible with Windows at this time.</p><p>Written by John Goerzen, jgoerzen@complete.org</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:sendmail">sendmail</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:sendmail" class="def">sendmail</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The envelope from address. If not specified, takes the system's default, which is usually based on the effective userid of the current process. This is not necessarily what you want, so I recommend specifying it.</p></td></tr><tr><td class="src">-> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]</td><td class="doc"><p>A list of recipients for your message. An empty list is an error.</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The message itself.</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Transmits an e-mail message using the system's mail transport agent.</p><p>This function takes a message, a list of recipients, and an optional sender,
|
||||
and transmits it using the system's MTA, sendmail.</p><p>If <code>sendmail</code> is on the <code>PATH</code>, it will be used; otherwise, a list of system
|
||||
default locations will be searched.</p><p>A failure will be logged, since this function uses <code><a href="System-Cmd-Utils.html#v:safeSystem">safeSystem</a></code>
|
||||
internally.</p><p>This function will first try <code>sendmail</code>. If it does not exist, an error is
|
||||
logged under <code>System.Cmd.Utils.pOpen3</code> and various default <code>sendmail</code> locations
|
||||
are tried. If that still fails, an error is logged and an exception raised.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,6 @@
|
||||
<!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>Network.Utils</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_Network-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>systems with networking</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Network.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides various helpful utilities for dealing with networking</p><p>Written by John Goerzen, jgoerzen@complete.org</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:niceSocketsDo">niceSocketsDo</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:connectTCP">connectTCP</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket.html#t:HostName">HostName</a> -> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket-Internal.html#t:PortNumber">PortNumber</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket.html#t:Socket">Socket</a></li><li class="src short"><a href="#v:connectTCPAddr">connectTCPAddr</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket-Internal.html#t:SockAddr">SockAddr</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket.html#t:Socket">Socket</a></li><li class="src short"><a href="#v:listenTCPAddr">listenTCPAddr</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket-Internal.html#t:SockAddr">SockAddr</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket.html#t:Socket">Socket</a></li><li class="src short"><a href="#v:showSockAddr">showSockAddr</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket-Internal.html#t:SockAddr">SockAddr</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:niceSocketsDo" class="def">niceSocketsDo</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> a</p><div class="doc"><p>Sets up the system for networking. Similar to the built-in
|
||||
withSocketsDo (and actually, calls it), but also sets the SIGPIPE
|
||||
handler so that signal is ignored.</p><p>Example:</p><pre>main = niceSocketsDo $ do { ... }</pre></div></div><div class="top"><p class="src"><a name="v:connectTCP" class="def">connectTCP</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket.html#t:HostName">HostName</a> -> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket-Internal.html#t:PortNumber">PortNumber</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket.html#t:Socket">Socket</a></p></div><div class="top"><p class="src"><a name="v:connectTCPAddr" class="def">connectTCPAddr</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket-Internal.html#t:SockAddr">SockAddr</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket.html#t:Socket">Socket</a></p></div><div class="top"><p class="src"><a name="v:listenTCPAddr" class="def">listenTCPAddr</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket-Internal.html#t:SockAddr">SockAddr</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket.html#t:Socket">Socket</a></p></div><div class="top"><p class="src"><a name="v:showSockAddr" class="def">showSockAddr</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/network-2.6.0.2/html/Network-Socket-Internal.html#t:SockAddr">SockAddr</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,13 @@
|
||||
<!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.GetOpt.Utils</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-GetOpt-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Console.GetOpt.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Written by John Goerzen, jgoerzen@complete.org</p><p>Utilities for command-line parsing, including wrappers around
|
||||
the standard System.Console.GetOpt module.</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:parseCmdLine">parseCmdLine</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Console-GetOpt.html#t:ArgOrder">ArgOrder</a> a -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Console-GetOpt.html#t:OptDescr">OptDescr</a> a] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ([a], [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>])</li><li class="src short"><a href="#v:validateCmdLine">validateCmdLine</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Console-GetOpt.html#t:ArgOrder">ArgOrder</a> a -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Console-GetOpt.html#t:OptDescr">OptDescr</a> a] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> (([a], [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]) -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>) -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ([a], [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>])</li><li class="src short"><span class="keyword">type</span> <a href="#t:StdOption">StdOption</a> = (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:stdRequired">stdRequired</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="System-Console-GetOpt-Utils.html#t:StdOption">StdOption</a></li><li class="src short"><a href="#v:stdOptional">stdOptional</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="System-Console-GetOpt-Utils.html#t:StdOption">StdOption</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:parseCmdLine" class="def">parseCmdLine</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Console-GetOpt.html#t:ArgOrder">ArgOrder</a> a -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Console-GetOpt.html#t:OptDescr">OptDescr</a> a] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ([a], [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>])</p><div class="doc"><p>Simple command line parser -- a basic wrapper around the system's
|
||||
default getOpt. See the System.Console.GetOpt manual for a description of the
|
||||
first two parameters.</p><p>The third parameter is a usage information header.</p><p>The return value consists of the list of parsed flags and a list of
|
||||
non-option arguments. </p></div></div><div class="top"><p class="src"><a name="v:validateCmdLine" class="def">validateCmdLine</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Console-GetOpt.html#t:ArgOrder">ArgOrder</a> a -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Console-GetOpt.html#t:OptDescr">OptDescr</a> a] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> (([a], [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]) -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>) -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ([a], [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>])</p><div class="doc"><p>Similar to <code><a href="System-Console-GetOpt-Utils.html#v:parseCmdLine">parseCmdLine</a></code>, but takes an additional function that validates
|
||||
the post-parse command-line arguments. This is useful, for example, in
|
||||
situations where there are two arguments that are mutually-exclusive and only
|
||||
one may legitimately be given at a time.</p><p>The return value of the function indicates whether or not it detected an
|
||||
error condition. If it returns Nothing, there is no error. If it returns
|
||||
Just String, there was an error, described by the String.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:StdOption" class="def">StdOption</a> = (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>)</p><div class="doc"><p>A type to standardize some common uses of GetOpt.</p><p>The first component of the tuple is the long name of the option.</p><p>The second component is empty if there is no arg, or has the arg otherwise. </p></div></div><div class="top"><p class="src"><a name="v:stdRequired" class="def">stdRequired</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Name of arg</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="System-Console-GetOpt-Utils.html#t:StdOption">StdOption</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Handle a required argument. </p></div></div><div class="top"><p class="src"><a name="v:stdOptional" class="def">stdOptional</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Name of arg</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="System-Console-GetOpt-Utils.html#t:StdOption">StdOption</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Handle an optional argument. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,9 @@
|
||||
<!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.Daemon</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-Daemon.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable to platforms with POSIX process\/signal tools</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Daemon</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Tools for writing daemons/server processes</p><p>Written by John Goerzen, jgoerzen@complete.org</p><p>Please note: Most of this module is not compatible with Hugs.</p><p>Messages from this module are logged under <code>System.Daemon</code>. See
|
||||
<code><a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/hslogger-1.2.8/html/System-Log.html#t:Logger">Logger</a></code> for details.</p><p>Based on background
|
||||
from <a href="http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16">http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16</a> and
|
||||
<a href="http://www.haskell.org/hawiki/HaskellUnixDaemon">http://www.haskell.org/hawiki/HaskellUnixDaemon</a>.</p><p>This module is not available on Windows.</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:detachDaemon">detachDaemon</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:detachDaemon" class="def">detachDaemon</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><div class="doc"><p>Detach the process from a controlling terminal and run it in the
|
||||
background, handling it with standard Unix deamon semantics.</p><p>After running this, please note the following side-effects:</p><ul><li>The PID of the running process will change</li><li>stdin, stdout, and stderr will not work (they'll be set to
|
||||
/dev/null)</li><li>CWD will be changed to /</li></ul><p>I <em>highly</em> suggest running this function before starting any threads.</p><p>Note that this is not intended for a daemon invoked from inetd(1).</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,5 @@
|
||||
<!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.Debian.ControlParser</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-Debian-ControlParser.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Debian.ControlParser</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides various helpful utilities for dealing with Debian
|
||||
files and programs.</p><p>Written by John Goerzen, jgoerzen@complete.org</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:control">control</a> :: CharParser a [(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>)]</li><li class="src short"><a href="#v:depPart">depPart</a> :: CharParser a (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>), [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>])</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:control" class="def">control</a> :: CharParser a [(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>)]</p><div class="doc"><p>Main parser for the control file </p></div></div><div class="top"><p class="src"><a name="v:depPart" class="def">depPart</a> :: CharParser a (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>), [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>])</p><div class="doc"><p>Dependency parser.</p><p>Returns (package name, Maybe version, arch list)</p><p>version is (operator, operand) </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,7 @@
|
||||
<!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.Debian</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-Debian.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Debian</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Control or Similar File Utilities</a></li><li><a href="#g:2">Version Number Utilities</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides various helpful utilities for dealing with Debian
|
||||
files and programs.</p><p>Written by John Goerzen, jgoerzen@complete.org</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"><span class="keyword">type</span> <a href="#t:ControlFile">ControlFile</a> = [(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>)]</li><li class="src short"><span class="keyword">data</span> <a href="#t:DebVersion">DebVersion</a></li><li class="src short"><a href="#v:compareDebVersion">compareDebVersion</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ordering">Ordering</a></li><li class="src short"><a href="#v:checkDebVersion">checkDebVersion</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1 id="g:1">Control or Similar File Utilities</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:ControlFile" class="def">ControlFile</a> = [(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>)]</p><div class="doc"><p>The type representing the contents of a Debian control file,
|
||||
or any control-like file (such as the output from apt-cache show, etc.) </p></div></div><h1 id="g:2">Version Number Utilities</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:DebVersion" class="def">DebVersion</a></p><div class="doc"><p>The type representing a Debian version number. This type is an instance
|
||||
of <code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a></code>, but you can also use <code><a href="System-Debian.html#v:compareDebVersion">compareDebVersion</a></code> if you prefer. </p></div><div class="subs instances"><p id="control.i:DebVersion" class="caption collapser" onclick="toggleSection('i:DebVersion')">Instances</p><div id="section.i:DebVersion" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Debian.html#t:DebVersion">DebVersion</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Debian.html#t:DebVersion">DebVersion</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:compareDebVersion" class="def">compareDebVersion</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ordering">Ordering</a></p><div class="doc"><p>Compare the versions of two packages. </p></div></div><div class="top"><p class="src"><a name="v:checkDebVersion" class="def">checkDebVersion</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Version 1</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Operator</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Version 2</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty"> </td></tr></table></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,7 @@
|
||||
<!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.IO.HVFS.Combinators</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-IO-HVFS-Combinators.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.IO.HVFS.Combinators</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Restrictions</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Support for combining different HVFS modules together</p><p>Copyright (c) 2004-2005 John Goerzen, jgoerzen@complete.org</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"><span class="keyword">data</span> <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="#t:HVFSReadOnly">HVFSReadOnly</a> a = <a href="#v:HVFSReadOnly">HVFSReadOnly</a> a</li><li class="src short"><span class="keyword">data</span> <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="#t:HVFSChroot">HVFSChroot</a> a</li><li class="src short"><a href="#v:newHVFSChroot">newHVFSChroot</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a> a)</li></ul></div><div id="interface"><h1 id="g:1">Restrictions</h1><div class="top"><p class="src"><span class="keyword">data</span> <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a name="t:HVFSReadOnly" class="def">HVFSReadOnly</a> a</p><div class="doc"><p>Restrict access to the underlying filesystem to be strictly
|
||||
read-only. Any write-type operations will cause an error.</p><p>No constructor is required; just say <code>HVFSReadOnly fs</code> to make a
|
||||
new read-only wrapper around the <code><a href="System-IO-HVFS.html#t:HVFS">HVFS</a></code> instance <code>fs</code>.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:HVFSReadOnly" class="def">HVFSReadOnly</a> a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:HVFSReadOnly" class="caption collapser" onclick="toggleSection('i:HVFSReadOnly')">Instances</p><div id="section.i:HVFSReadOnly" class="show"><table><tr><td class="src">(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a) => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSReadOnly">HVFSReadOnly</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSReadOnly">HVFSReadOnly</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> a => <a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSReadOnly">HVFSReadOnly</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSReadOnly">HVFSReadOnly</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a name="t:HVFSChroot" class="def">HVFSChroot</a> a</p><div class="doc"><p>Access a subdirectory of a real filesystem as if it was the root
|
||||
of that filesystem. </p></div><div class="subs instances"><p id="control.i:HVFSChroot" class="caption collapser" onclick="toggleSection('i:HVFSChroot')">Instances</p><div id="section.i:HVFSChroot" class="show"><table><tr><td class="src">(<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a) => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> a => <a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:newHVFSChroot" class="def">newHVFSChroot</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">=> a</td><td class="doc"><p>The object to pass requests on to</p></td></tr><tr><td class="src">-> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a></td><td class="doc"><p>The path of the directory to make root</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a> a)</td><td class="doc"><p>The resulting new object</p></td></tr></table></div><div class="doc"><p>Create a new <code><a href="System-IO-HVFS-Combinators.html#t:HVFSChroot">HVFSChroot</a></code> object. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,13 @@
|
||||
<!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.IO.HVFS.InstanceHelpers</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-IO-HVFS-InstanceHelpers.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.IO.HVFS.InstanceHelpers</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">HVFSStat objects</a></li><li><a href="#g:2">HVFS objects & types</a><ul><li><a href="#g:3">MemoryVFS</a></li></ul></li><li><a href="#g:4">Utilities</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Utilities for creating instances of the items defined in
|
||||
<a href="System-IO-HVFS.html">System.IO.HVFS</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"><span class="keyword">data</span> <a href="#t:SimpleStat">SimpleStat</a> = <a href="#v:SimpleStat">SimpleStat</a> {<ul class="subs"><li><a href="#v:isFile">isFile</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:fileSize">fileSize</a> :: <a href="System-IO-HVFS.html#t:FileOffset">FileOffset</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:MemoryVFS">MemoryVFS</a></li><li class="src short"><a href="#v:newMemoryVFS">newMemoryVFS</a> :: [<a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryNode">MemoryNode</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></li><li class="src short"><a href="#v:newMemoryVFSRef">newMemoryVFSRef</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-IORef.html#t:IORef">IORef</a> [<a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryNode">MemoryNode</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:MemoryNode">MemoryNode</a> = (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryEntry">MemoryEntry</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:MemoryEntry">MemoryEntry</a><ul class="subs"><li>= <a href="#v:MemoryDirectory">MemoryDirectory</a> [<a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryNode">MemoryNode</a>]</li><li>| <a href="#v:MemoryFile">MemoryFile</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></li><li class="src short"><a href="#v:nice_slice">nice_slice</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]</li><li class="src short"><a href="#v:getFullPath">getFullPath</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:getFullSlice">getFullSlice</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]</li></ul></div><div id="interface"><h1 id="g:1">HVFSStat objects</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SimpleStat" class="def">SimpleStat</a></p><div class="doc"><p>A simple <a href="System-IO-HVFS-HVFSStat.html">System.IO.HVFS.HVFSStat</a>
|
||||
class that assumes that everything is either a file
|
||||
or a directory. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SimpleStat" class="def">SimpleStat</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:isFile" class="def">isFile</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc"><p>True if file, False if directory</p></dd><dt class="src"><a name="v:fileSize" class="def">fileSize</a> :: <a href="System-IO-HVFS.html#t:FileOffset">FileOffset</a></dt><dd class="doc"><p>Set to 0 if unknown or a directory</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:SimpleStat" class="caption collapser" onclick="toggleSection('i:SimpleStat')">Instances</p><div id="section.i:SimpleStat" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:SimpleStat">SimpleStat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:SimpleStat">SimpleStat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSStat">HVFSStat</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:SimpleStat">SimpleStat</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:2">HVFS objects & types</h1><h2 id="g:3">MemoryVFS</h2><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:MemoryVFS" class="def">MemoryVFS</a></p><div class="doc"><p>An in-memory read/write filesystem. Think of it as a dynamically
|
||||
resizable ramdisk written in Haskell. </p></div><div class="subs instances"><p id="control.i:MemoryVFS" class="caption collapser" onclick="toggleSection('i:MemoryVFS')">Instances</p><div id="section.i:MemoryVFS" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:newMemoryVFS" class="def">newMemoryVFS</a> :: [<a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryNode">MemoryNode</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></p><div class="doc"><p>Create a new <code><a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></code> object from an existing tree.
|
||||
An empty filesystem may be created by using <code>[]</code> for the parameter.</p></div></div><div class="top"><p class="src"><a name="v:newMemoryVFSRef" class="def">newMemoryVFSRef</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-IORef.html#t:IORef">IORef</a> [<a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryNode">MemoryNode</a>] -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></p><div class="doc"><p>Create a new <code><a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></code> object using an IORef to an
|
||||
existing tree.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:MemoryNode" class="def">MemoryNode</a> = (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>, <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryEntry">MemoryEntry</a>)</p><div class="doc"><p>The basic node of a <code><a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></code>. The String corresponds to the filename,
|
||||
and the entry to the contents. </p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:MemoryEntry" class="def">MemoryEntry</a></p><div class="doc"><p>The content of a file or directory in a <code><a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryVFS">MemoryVFS</a></code>. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:MemoryDirectory" class="def">MemoryDirectory</a> [<a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryNode">MemoryNode</a>]</td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:MemoryFile" class="def">MemoryFile</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:MemoryEntry" class="caption collapser" onclick="toggleSection('i:MemoryEntry')">Instances</p><div id="section.i:MemoryEntry" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryEntry">MemoryEntry</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="System-IO-HVFS-InstanceHelpers.html#t:MemoryEntry">MemoryEntry</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:4">Utilities</h1><div class="top"><p class="src"><a name="v:nice_slice" class="def">nice_slice</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]</p><div class="doc"><p>Similar to <code><a href="System-Path.html#t:NameManip">NameManip</a></code> but the first element
|
||||
won't be <code>/</code>.</p><pre>nice_slice "/" -> []
|
||||
nice_slice "/foo/bar" -> ["foo", "bar"]</pre></div></div><div class="top"><p class="src"><a name="v:getFullPath" class="def">getFullPath</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Gets a full path, after investigating the cwd.</p></div></div><div class="top"><p class="src"><a name="v:getFullSlice" class="def">getFullSlice</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a>]</p><div class="doc"><p>Gets the full path via <code><a href="System-IO-HVFS-InstanceHelpers.html#v:getFullPath">getFullPath</a></code>, then splits it via <code><a href="System-IO-HVFS-InstanceHelpers.html#v:nice_slice">nice_slice</a></code>.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,14 @@
|
||||
<!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.IO.HVFS.Utils</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-IO-HVFS-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.IO.HVFS.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides various helpful utilities for dealing
|
||||
filesystems.</p><p>Written by John Goerzen, jgoerzen@complete.org</p><p>To operate on your system's main filesystem, just pass SystemFS as the
|
||||
first parameter to these functions.</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:recurseDir">recurseDir</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>]</li><li class="src short"><a href="#v:recurseDirStat">recurseDirStat</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [(<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>, <a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a>)]</li><li class="src short"><a href="#v:recursiveRemove">recursiveRemove</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:lsl">lsl</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:SystemFS">SystemFS</a> = <a href="#v:SystemFS">SystemFS</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:recurseDir" class="def">recurseDir</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>]</p><div class="doc"><p>Obtain a recursive listing of all files/directories beneath
|
||||
the specified directory. The traversal is depth-first
|
||||
and the original
|
||||
item is always present in the returned list.</p><p>If the passed value is not a directory, the return value
|
||||
be only that value.</p><p>The "." and ".." entries are removed from the data returned.</p></div></div><div class="top"><p class="src"><a name="v:recurseDirStat" class="def">recurseDirStat</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [(<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>, <a href="System-IO-HVFS.html#t:HVFSStatEncap">HVFSStatEncap</a>)]</p><div class="doc"><p>Like <code><a href="System-IO-HVFS-Utils.html#v:recurseDir">recurseDir</a></code>, but return the stat() (System.Posix.Files.FileStatus)
|
||||
information with them. This is an optimization if you will be statting files
|
||||
yourself later.</p><p>The items are returned lazily.</p><p>WARNING: do not change your current working directory until you have consumed
|
||||
all the items. Doing so could cause strange effects.</p><p>Alternatively, you may wish to pass an absolute path to this function.</p></div></div><div class="top"><p class="src"><a name="v:recursiveRemove" class="def">recursiveRemove</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</p><div class="doc"><p>Removes a file or a directory. If a directory, also removes all its
|
||||
child files/directories.</p></div></div><div class="top"><p class="src"><a name="v:lsl" class="def">lsl</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Provide a result similar to the command ls -l over a directory.</p><p>Known bug: setuid bit semantics are inexact compared with standard ls.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SystemFS" class="def">SystemFS</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SystemFS" class="def">SystemFS</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:SystemFS" class="caption collapser" onclick="toggleSection('i:SystemFS')">Instances</p><div id="section.i:SystemFS" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-IO-HVFS-Utils.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="System-IO-HVFS-Utils.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFSOpenable">HVFSOpenable</a> <a href="System-IO-HVFS-Utils.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="System-IO-HVFS.html#t:HVFS">HVFS</a> <a href="System-IO-HVFS-Utils.html#t:SystemFS">SystemFS</a></td><td class="doc empty"> </td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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.IO.PlafCompat</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-IO-PlafCompat.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.IO.PlafCompat</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>On Unix, exports System.Posix.Types and System.Posix.Files.</p><p>On Windows, exports System.Posix.Types and <a href="System-IO-WindowsCompat.html">System.IO.WindowsCompat</a>.</p><p>The result should be roughly the same set of defined variables and types.</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:nullFileName">nullFileName</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li class="src short">module <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/unix-2.7.1.0/System-Posix-Files.html">System.Posix.Files</a></li><li class="src short">module <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html">System.Posix.Types</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:nullFileName" class="def">nullFileName</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>The name of the null device. NUL: on Windows, /dev/null everywhere else.</p></div></div><div class="top"><p class="src">module <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/unix-2.7.1.0/System-Posix-Files.html">System.Posix.Files</a></p></div><div class="top"><p class="src">module <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html">System.Posix.Types</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,5 @@
|
||||
<!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.IO.StatCompat</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-IO-StatCompat.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.IO.StatCompat</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Provide a stat-like structure for use in MissingH. Especially
|
||||
useful with HVFS and on Windows. See also <a href="System-IO-WindowsCompat.html">System.IO.WindowsCompat</a>.</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:FileStatusCompat" class="def">FileStatusCompat</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FileStatusCompat" class="def">FileStatusCompat</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:deviceID" class="def">deviceID</a> :: <a href="System-IO-HVFS.html#t:DeviceID">DeviceID</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:fileID" class="def">fileID</a> :: <a href="System-IO-HVFS.html#t:FileID">FileID</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:fileMode" class="def">fileMode</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:linkCount" class="def">linkCount</a> :: <a href="System-IO-HVFS.html#t:LinkCount">LinkCount</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:fileOwner" class="def">fileOwner</a> :: <a href="System-IO-HVFS.html#t:UserID">UserID</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:fileGroup" class="def">fileGroup</a> :: <a href="System-IO-HVFS.html#t:GroupID">GroupID</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:specialDeviceID" class="def">specialDeviceID</a> :: <a href="System-IO-HVFS.html#t:DeviceID">DeviceID</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:fileSize" class="def">fileSize</a> :: <a href="System-IO-HVFS.html#t:FileOffset">FileOffset</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:accessTime" class="def">accessTime</a> :: <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:modificationTime" class="def">modificationTime</a> :: <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:statusChangeTime" class="def">statusChangeTime</a> :: <a href="System-IO-HVFS.html#t:EpochTime">EpochTime</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="v:sc_helper" class="def">sc_helper</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a> -> <a href="System-IO-StatCompat.html#t:FileStatusCompat">FileStatusCompat</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div><div class="top"><p class="src"><a name="v:isBlockDevice" class="def">isBlockDevice</a> :: <a href="System-IO-StatCompat.html#t:FileStatusCompat">FileStatusCompat</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div><div class="top"><p class="src"><a name="v:isCharacterDevice" class="def">isCharacterDevice</a> :: <a href="System-IO-StatCompat.html#t:FileStatusCompat">FileStatusCompat</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div><div class="top"><p class="src"><a name="v:isNamedPipe" class="def">isNamedPipe</a> :: <a href="System-IO-StatCompat.html#t:FileStatusCompat">FileStatusCompat</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div><div class="top"><p class="src"><a name="v:isRegularFile" class="def">isRegularFile</a> :: <a href="System-IO-StatCompat.html#t:FileStatusCompat">FileStatusCompat</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div><div class="top"><p class="src"><a name="v:isDirectory" class="def">isDirectory</a> :: <a href="System-IO-StatCompat.html#t:FileStatusCompat">FileStatusCompat</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div><div class="top"><p class="src"><a name="v:isSymbolicLink" class="def">isSymbolicLink</a> :: <a href="System-IO-StatCompat.html#t:FileStatusCompat">FileStatusCompat</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div><div class="top"><p class="src"><a name="v:isSocket" class="def">isSocket</a> :: <a href="System-IO-StatCompat.html#t:FileStatusCompat">FileStatusCompat</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,15 @@
|
||||
<!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.IO.WindowsCompat</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-IO-WindowsCompat.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.IO.WindowsCompat</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Provides some types and related items on Windows to be compatible with
|
||||
the System.Posix.* libraries</p><p>See also <a href="System-IO-StatCompat.html">System.IO.StatCompat</a>, which this module re-exports.</p><p>On non-Windows platforms, this module does nothing.</p><p>On Windows, it re-exports <a href="System-IO-StatCompat.html">System.IO.StatCompat</a>. It also provides various
|
||||
file type information modes that are otherwise in <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-Posix-Types.html">System.Posix.Types</a> or
|
||||
<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/unix-2.7.1.0/System-Posix-Files.html">System.Posix.Files</a>. It also provides
|
||||
a rudimentary implemention of getFileStatus that emulates the Posix call
|
||||
to stat(2).</p><p>Common usage might be like this:</p><pre>import System.Posix.Types
|
||||
#if (defined(mingw32_HOST_OS) || defined(mingw32_TARGET_OS) || defined(__MINGW32__))
|
||||
import System.IO.WindowsCompat
|
||||
#else
|
||||
import System.Posix.Files
|
||||
#endif</pre><p>Or, to avoid having to use CPP and make things even easier, just import
|
||||
<a href="System-IO-PlafCompat.html">System.IO.PlafCompat</a>, which essentially does the above.</p></div></div><div id="interface"></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,9 @@
|
||||
<!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.Path.Glob</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-Path-Glob.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2006-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Path.Glob</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Functions for expanding wildcards, filenames, and pathnames.</p><p>For information on the metacharacters recognized, please see the notes
|
||||
in <a href="System-Path-WildMatch.html">System.Path.WildMatch</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:glob">glob</a> :: <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>]</li><li class="src short"><a href="#v:vGlob">vGlob</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>]</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:glob" class="def">glob</a> :: <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>]</p><div class="doc"><p>Takes a pattern. Returns a list of names that match that pattern.
|
||||
The pattern is evaluated by <a href="System-Path-WildMatch.html">System.Path.WildMatch</a>. This function
|
||||
does not perform tilde or environment variable expansion.</p><p>Filenames that begin with a dot are not included in the result set unless
|
||||
that component of the pattern also begins with a dot.</p><p>In MissingH, this function is defined as:</p><pre>glob = vGlob SystemFS</pre></div></div><div class="top"><p class="src"><a name="v:vGlob" class="def">vGlob</a> :: <a href="System-IO-HVFS.html#t:HVFS">HVFS</a> a => a -> <a href="System-IO-HVFS.html#t:FilePath">FilePath</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> [<a href="System-IO-HVFS.html#t:FilePath">FilePath</a>]</p><div class="doc"><p>Like <code><a href="System-Path-Glob.html#v:glob">glob</a></code>, but works on both the system ("real") and HVFS virtual
|
||||
filesystems. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,16 @@
|
||||
<!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.Path.WildMatch</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-Path-WildMatch.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2006-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org></td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Path.WildMatch</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Wildcard matching</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Matching filenames with wildcards. See also <a href="System-Path-Glob.html">System.Path.Glob</a> for
|
||||
support for generating lists of files based on wildcards.</p><p>Inspired by fnmatch.py, part of the Python standard library.</p><p>Written by John Goerzen, jgoerzen@complete.org</p><p>The input wildcard for functions in this module is expected to be in
|
||||
the standard style of Posix shells.</p><p>That is:</p><pre>? matches exactly one character
|
||||
\* matches zero or more characters
|
||||
[list] matches any character in list
|
||||
[!list] matches any character not in the list</pre><p>The returned regular expression will always end in $ but never begins
|
||||
with ^, making it suitable for appending to the end of paths. If you want to
|
||||
match a given filename directly, you should prepend the ^ character to the
|
||||
returned value from this function.</p><p>Please note:</p><ul><li>Neither the path separator (the slash or backslash) nor the period carry
|
||||
any special meaning for the functions in this module. That is, <code>*</code> will
|
||||
match <code>/</code> in a filename. If this is not the behavior you want, you probably
|
||||
want <a href="System-Path-Glob.html">System.Path.Glob</a> instead of this module.</li><li>Unlike the Unix shell, filenames that begin with a period are not ignored
|
||||
by this module. That is, <code>*.txt</code> will match <code>.test.txt</code>.</li><li>This module does not current permit escaping of special characters.</li></ul></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:wildCheckCase">wildCheckCase</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:wildToRegex">wildToRegex</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1 id="g:1">Wildcard matching</h1><div class="top"><p class="src"><a name="v:wildCheckCase" class="def">wildCheckCase</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The wildcard pattern to use as the base</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The filename to check against it</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>Result</p></td></tr></table></div><div class="doc"><p>Check the given name against the given pattern, being case-sensitive.</p><p>The given pattern is forced to match the given name starting at the beginning.</p></div></div><div class="top"><p class="src"><a name="v:wildToRegex" class="def">wildToRegex</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Convert a wildcard to an (uncompiled) regular expression.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,5 @@
|
||||
<!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.Posix.Consts</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-Posix-Consts.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2005-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Posix.Consts</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Exports some POSIX constants and functions that are not exported in fptools
|
||||
by default.</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:blockSpecialMode" class="def">blockSpecialMode</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p></div><div class="top"><p class="src"><a name="v:characterSpecialMode" class="def">characterSpecialMode</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p></div><div class="top"><p class="src"><a name="v:namedPipeMode" class="def">namedPipeMode</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p></div><div class="top"><p class="src"><a name="v:regularFileMode" class="def">regularFileMode</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p></div><div class="top"><p class="src"><a name="v:directoryMode" class="def">directoryMode</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p></div><div class="top"><p class="src"><a name="v:fileTypeModes" class="def">fileTypeModes</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p></div><div class="top"><p class="src"><a name="v:socketMode" class="def">socketMode</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p></div><div class="top"><p class="src"><a name="v:symbolicLinkMode" class="def">symbolicLinkMode</a> :: <a href="System-IO-HVFS.html#t:FileMode">FileMode</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,22 @@
|
||||
<!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.Time.ParseDate</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-Time-ParseDate.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(c) by Björn Bringert</td></tr><tr><th>License</th><td>GPL2</td></tr><tr><th>Maintainer</th><td>Björn Bringert</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Time.ParseDate</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Utility for parsing dates.</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:parseCalendarTime">parseCalendarTime</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-locale-1.0.0.7/html/System-Locale.html#t:TimeLocale">TimeLocale</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:parseCalendarTime" class="def">parseCalendarTime</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-locale-1.0.0.7/html/System-Locale.html#t:TimeLocale">TimeLocale</a></td><td class="doc"><p>Time locale</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>Date format</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse</p></td></tr><tr><td class="src">-> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a></td><td class="doc"><p><code><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if parsing failed.</p></td></tr></table></div><div class="doc"><p>Parse a date string as formatted by <code><a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#v:formatCalendarTime">formatCalendarTime</a></code>.</p><p>The resulting <code><a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a></code> will only have those fields set that
|
||||
are represented by a format specifier in the format string, and those
|
||||
fields will be set to the values given in the date string.
|
||||
If the same field is specified multiple times, the rightmost
|
||||
occurence takes precedence.</p><p>The resulting date is not neccessarily a valid date. For example,
|
||||
if there is no day of the week specifier in the format string,
|
||||
the value of <code><a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#v:ctWDay">ctWDay</a></code> will most likely be invalid.</p><p>Format specifiers are % followed by some character. All other
|
||||
characters are treated literally. Whitespace in the format string
|
||||
matches zero or more arbitrary whitespace characters.</p><p>Format specifiers marked with * are matched, but do not set any
|
||||
field in the output.</p><p>Some of the format specifiers are marked as space-padded or
|
||||
zero-padded. Regardless of this, space-padded, zero-padded
|
||||
or unpadded inputs are accepted. Note that strings using
|
||||
unpadded fields without separating the fields may cause
|
||||
strange parsing.</p><p>Supported format specfiers:</p><dl><dt>%%</dt><dd>a % character.<dl><dt>%a</dt><dd>locale's abbreviated weekday name (Sun ... Sat)</dd><dt>%A</dt><dd>locale's full weekday name (Sunday .. Saturday)</dd><dt>%b</dt><dd>locale's abbreviated month name (Jan..Dec)</dd><dt>%B</dt><dd>locale's full month name (January..December)</dd><dt>%c</dt><dd>locale's date and time format (Thu Mar 25 17:47:03 CET 2004)</dd><dt>%C</dt><dd>century [00-99]</dd><dt>%d</dt><dd>day of month, zero padded (01..31)</dd><dt>%D</dt><dd>date (%m/%d/%y)</dd><dt>%e</dt><dd>day of month, space padded ( 1..31)</dd><dt>%h</dt><dd>same as %b</dd><dt>%H</dt><dd>hour, 24-hour clock, zero padded (00..23)</dd><dt>%I</dt><dd>hour, 12-hour clock, zero padded (01..12)</dd><dt>%j</dt><dd>day of the year, zero padded (001..366)</dd><dt>%k</dt><dd>hour, 24-hour clock, space padded ( 0..23)</dd><dt>%l</dt><dd>hour, 12-hour clock, space padded ( 1..12)</dd><dt>%m</dt><dd>month, zero padded (01..12)</dd><dt>%M</dt><dd>minute, zero padded (00..59)</dd><dt>%n</dt><dd>a newline character</dd><dt>%p</dt><dd>locale's AM or PM indicator</dd><dt>%r</dt><dd>locale's 12-hour time format (hh:mm:ss AM/PM)</dd><dt>%R</dt><dd>hours and minutes, 24-hour clock (hh:mm)</dd><dt>%s</dt><dd>* seconds since '00:00:00 1970-01-01 UTC'</dd><dt>%S</dt><dd>seconds, zero padded (00..59)</dd><dt>%t</dt><dd>a horizontal tab character</dd><dt>%T</dt><dd>time, 24-hour clock (hh:mm:ss)</dd><dt>%u</dt><dd>numeric day of the week (1=Monday, 7=Sunday)</dd><dt>%U</dt><dd>* week number, weeks starting on Sunday, zero padded (01-53)</dd><dt>%V</dt><dd>* week number (as per ISO-8601),
|
||||
week 1 is the first week with a Thursday,
|
||||
zero padded, (01-53)</dd><dt>%w</dt><dd>numeric day of the week, (0=Sunday, 6=Monday)</dd><dt>%W</dt><dd>* week number, weeks starting on Monday, zero padded (01-53)</dd><dt>%x</dt><dd>locale's preferred way of printing dates (%m/%d/%y)</dd><dt>%X</dt><dd>locale's preferred way of printing time. (%H:%M:%S)</dd><dt>%y</dt><dd>year, within century, zero padded (00..99)</dd><dt>%Y</dt><dd>year, including century. Not padded
|
||||
(this is probably a bug, but formatCalendarTime does
|
||||
it this way). (0-9999)</dd><dt>%Z</dt><dd>time zone abbreviation (e.g. CET) or RFC-822 style numeric
|
||||
timezone (-0500) </dd></dl></dd></dl></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,20 @@
|
||||
<!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.Time.Utils</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-Time-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Time.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides various Haskell utilities for dealing with times and
|
||||
dates.</p><p>Written by John Goerzen, jgoerzen@complete.org</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:timelocal">timelocal</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:timegm">timegm</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:timeDiffToSecs">timeDiffToSecs</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:epoch">epoch</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a></li><li class="src short"><a href="#v:epochToClockTime">epochToClockTime</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Real">Real</a> a => a -> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:ClockTime">ClockTime</a></li><li class="src short"><a href="#v:clockTimeToEpoch">clockTimeToEpoch</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> a => <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:ClockTime">ClockTime</a> -> a</li><li class="src short"><a href="#v:renderSecs">renderSecs</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:renderTD">renderTD</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:timelocal" class="def">timelocal</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integer">Integer</a></p><div class="doc"><p>Converts the specified CalendarTime (see System.Time) to
|
||||
seconds-since-epoch format.</p><p>The input CalendarTime is assumed to be the time as given in your local
|
||||
timezone. All timezone and DST fields in the object are ignored.</p><p>This behavior is equivolent to the timelocal() and mktime() functions that
|
||||
C programmers are accustomed to.</p><p>Please note that the behavior for this function during the hour immediately
|
||||
before or after a DST switchover may produce a result with a different hour
|
||||
than you expect.</p></div></div><div class="top"><p class="src"><a name="v:timegm" class="def">timegm</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integer">Integer</a></p><div class="doc"><p>Converts the specified CalendarTime (see System.Time) to seconds-since-epoch time.</p><p>This conversion does respect the timezone specified on the input object.
|
||||
If you want a conversion from UTC, specify ctTZ = 0 and ctIsDST = False.</p><p>When called like that, the behavior is equivolent to the GNU C function
|
||||
timegm(). Unlike the C library, Haskell's CalendarTime supports
|
||||
timezone information, so if such information is specified, it will impact
|
||||
the result.</p></div></div><div class="top"><p class="src"><a name="v:timeDiffToSecs" class="def">timeDiffToSecs</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integer">Integer</a></p><div class="doc"><p>Converts the given timeDiff to the number of seconds it represents. </p><p>Uses the same algorithm as normalizeTimeDiff in GHC. </p></div></div><div class="top"><p class="src"><a name="v:epoch" class="def">epoch</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:CalendarTime">CalendarTime</a></p><div class="doc"><p>January 1, 1970, midnight, UTC, represented as a CalendarTime. </p></div></div><div class="top"><p class="src"><a name="v:epochToClockTime" class="def">epochToClockTime</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Real">Real</a> a => a -> <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:ClockTime">ClockTime</a></p><div class="doc"><p>Converts an Epoch time represented with an arbitrary Real to a ClockTime.
|
||||
This input could be a CTime from Foreign.C.Types or an EpochTime from
|
||||
System.Posix.Types. </p></div></div><div class="top"><p class="src"><a name="v:clockTimeToEpoch" class="def">clockTimeToEpoch</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Num">Num</a> a => <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:ClockTime">ClockTime</a> -> a</p><div class="doc"><p>Converts a ClockTime to something represented with an arbitrary Real.
|
||||
The result could be treated as a CTime from Foreign.C.Types or EpochTime from
|
||||
System.Posix.Types. The inverse of <code><a href="System-Time-Utils.html#v:epochToClockTime">epochToClockTime</a></code>.</p><p>Fractions of a second are not preserved by this function. </p></div></div><div class="top"><p class="src"><a name="v:renderSecs" class="def">renderSecs</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Render a number of seconds as a human-readable amount. Shows the two
|
||||
most significant places. For instance:</p><pre>renderSecs 121 = "2m1s"</pre><p>See also <code><a href="System-Time-Utils.html#v:renderTD">renderTD</a></code> for a function that works on a TimeDiff.</p></div></div><div class="top"><p class="src"><a name="v:renderTD" class="def">renderTD</a> :: <a href="file:///Users/sidharta/.cabal/share/doc/x86_64-osx-ghc-7.10.1/old-time-1.1.0.3/html/System-Time.html#t:TimeDiff">TimeDiff</a> -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Like <code><a href="System-Time-Utils.html#v:renderSecs">renderSecs</a></code>, but takes a TimeDiff instead of an integer second
|
||||
count. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,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>Text.ParserCombinators.Parsec.Utils</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_Text-ParserCombinators-Parsec-Utils.html");};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Text.ParserCombinators.Parsec.Utils</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Generalized Utilities</a></li><li><a href="#g:2">Other Utilities</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Written by John Goerzen, jgoerzen@complete.org</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"><span class="keyword">type</span> <a href="#t:GeneralizedToken">GeneralizedToken</a> a = (SourcePos, a)</li><li class="src short"><span class="keyword">type</span> <a href="#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st b = GenParser (<a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedToken">GeneralizedToken</a> a) st b</li><li class="src short"><a href="#v:togtok">togtok</a> :: a -> GenParser b st (<a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedToken">GeneralizedToken</a> a)</li><li class="src short"><a href="#v:tokeng">tokeng</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => (a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> b) -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st b</li><li class="src short"><a href="#v:satisfyg">satisfyg</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => (a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a>) -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st a</li><li class="src short"><a href="#v:oneOfg">oneOfg</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a) => [a] -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st a</li><li class="src short"><a href="#v:noneOfg">noneOfg</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a) => [a] -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st a</li><li class="src short"><a href="#v:specificg">specificg</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a) => a -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st a</li><li class="src short"><a href="#v:allg">allg</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st [a]</li><li class="src short"><a href="#v:notMatching">notMatching</a> :: GenParser a b c -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> GenParser a b ()</li></ul></div><div id="interface"><h1 id="g:1">Generalized Utilities</h1><div class="doc"><p>These functions are generalized versions of
|
||||
ones you might see in the Char parser.</p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:GeneralizedToken" class="def">GeneralizedToken</a> a = (SourcePos, a)</p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:GeneralizedTokenParser" class="def">GeneralizedTokenParser</a> a st b = GenParser (<a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedToken">GeneralizedToken</a> a) st b</p></div><div class="top"><p class="src"><a name="v:togtok" class="def">togtok</a> :: a -> GenParser b st (<a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedToken">GeneralizedToken</a> a)</p><div class="doc"><p>Generate (return) a <code><a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedToken">GeneralizedToken</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:tokeng" class="def">tokeng</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => (a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Maybe.html#t:Maybe">Maybe</a> b) -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st b</p><div class="doc"><p>Retrieve the next token from a <code><a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedToken">GeneralizedToken</a></code> stream.
|
||||
The given function should return the value to use, or Nothing
|
||||
to cause an error. </p></div></div><div class="top"><p class="src"><a name="v:satisfyg" class="def">satisfyg</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => (a -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a>) -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st a</p><div class="doc"><p>A shortcut to <code><a href="Text-ParserCombinators-Parsec-Utils.html#v:tokeng">tokeng</a></code>; the test here is just a function that returns
|
||||
a Bool. If the result is true; return that value -- otherwise, an error.</p></div></div><div class="top"><p class="src"><a name="v:oneOfg" class="def">oneOfg</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a) => [a] -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st a</p><div class="doc"><p>Matches one item in a list and returns it. </p></div></div><div class="top"><p class="src"><a name="v:noneOfg" class="def">noneOfg</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a) => [a] -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st a</p><div class="doc"><p>Matches one item not in a list and returns it. </p></div></div><div class="top"><p class="src"><a name="v:specificg" class="def">specificg</a> :: (<a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a) => a -> <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st a</p><div class="doc"><p>Matches one specific token and returns it. </p></div></div><div class="top"><p class="src"><a name="v:allg" class="def">allg</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> a => <a href="Text-ParserCombinators-Parsec-Utils.html#t:GeneralizedTokenParser">GeneralizedTokenParser</a> a st [a]</p><div class="doc"><p>Matches all items and returns them </p></div></div><h1 id="g:2">Other Utilities</h1><div class="top"><p class="src"><a name="v:notMatching" class="def">notMatching</a> :: GenParser a b c -> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -> GenParser a b ()</p><div class="doc"><p>Running <code>notMatching p msg</code> will try to apply parser p.
|
||||
If it fails, returns (). If it succeds, cause a failure and raise
|
||||
the given error message. It will not consume input in either case. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>MissingH-1.3.0.1: Large utility library (Index - A)</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();};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="alphabet"><ul><li><a href="doc-index-A.html">A</a></li><li><a href="doc-index-B.html">B</a></li><li><a href="doc-index-C.html">C</a></li><li><a href="doc-index-D.html">D</a></li><li><a href="doc-index-E.html">E</a></li><li><a href="doc-index-F.html">F</a></li><li><a href="doc-index-G.html">G</a></li><li><a href="doc-index-H.html">H</a></li><li><a href="doc-index-I.html">I</a></li><li><a href="doc-index-J.html">J</a></li><li><a href="doc-index-K.html">K</a></li><li><a href="doc-index-L.html">L</a></li><li><a href="doc-index-M.html">M</a></li><li><a href="doc-index-N.html">N</a></li><li><a href="doc-index-O.html">O</a></li><li><a href="doc-index-P.html">P</a></li><li><a href="doc-index-Q.html">Q</a></li><li><a href="doc-index-R.html">R</a></li><li><a href="doc-index-S.html">S</a></li><li><a href="doc-index-T.html">T</a></li><li><a href="doc-index-U.html">U</a></li><li><a href="doc-index-V.html">V</a></li><li><a href="doc-index-W.html">W</a></li><li><a href="doc-index-X.html">X</a></li><li><a href="doc-index-Z.html">Z</a></li><li><a href="doc-index-All.html">All</a></li></ul></div><div id="index"><p class="caption">Index - A</p><table><tr><td class="src">ABCD</td><td> </td></tr><tr><td class="alt">1 (Type/Class)</td><td class="module"><a href="Data-Hash-MD5.html#t:ABCD">Data.Hash.MD5</a></td></tr><tr><td class="alt">2 (Data Constructor)</td><td class="module"><a href="Data-Hash-MD5.html#v:ABCD">Data.Hash.MD5</a></td></tr><tr><td class="src">absNormPath</td><td class="module"><a href="System-Path.html#v:absNormPath">System.Path</a></td></tr><tr><td class="src">absolute_path</td><td class="module"><a href="System-Path-NameManip.html#v:absolute_path">System.Path.NameManip</a></td></tr><tr><td class="src">absolute_path'</td><td class="module"><a href="System-Path-NameManip.html#v:absolute_path-39-">System.Path.NameManip</a></td></tr><tr><td class="src">absolute_path_by</td><td class="module"><a href="System-Path-NameManip.html#v:absolute_path_by">System.Path.NameManip</a></td></tr><tr><td class="src">accessModes</td><td class="module">System.IO.PlafCompat</td></tr><tr><td class="src">accessTime</td><td> </td></tr><tr><td class="alt">1 (Function)</td><td class="module">System.IO.PlafCompat</td></tr><tr><td class="alt">2 (Function)</td><td class="module"><a href="System-IO-StatCompat.html#v:accessTime">System.IO.StatCompat</a></td></tr><tr><td class="src">accessTimeHiRes</td><td class="module">System.IO.PlafCompat</td></tr><tr><td class="src">addCallback</td><td class="module"><a href="Data-Progress-Tracker.html#v:addCallback">Data.Progress.Tracker</a></td></tr><tr><td class="src">addComponent</td><td class="module"><a href="Data-Progress-Meter.html#v:addComponent">Data.Progress.Meter</a></td></tr><tr><td class="src">addFlags</td><td class="module"><a href="Network-Email-Mailbox.html#v:addFlags">Network.Email.Mailbox</a></td></tr><tr><td class="src">addParent</td><td class="module"><a href="Data-Progress-Tracker.html#v:addParent">Data.Progress.Tracker</a></td></tr><tr><td class="src">addToAL</td><td class="module"><a href="Data-List-Utils.html#v:addToAL">Data.List.Utils</a></td></tr><tr><td class="src">allg</td><td class="module"><a href="Text-ParserCombinators-Parsec-Utils.html#v:allg">Text.ParserCombinators.Parsec.Utils</a></td></tr><tr><td class="src">alwaysElemRIndex</td><td class="module"><a href="Data-List-Utils.html#v:alwaysElemRIndex">Data.List.Utils</a></td></tr><tr><td class="src">ANSWERED</td><td class="module"><a href="Network-Email-Mailbox.html#v:ANSWERED">Network.Email.Mailbox</a></td></tr><tr><td class="src">appendMessages</td><td class="module"><a href="Network-Email-Mailbox.html#v:appendMessages">Network.Email.Mailbox</a></td></tr><tr><td class="src">AsyncIOAvailable</td><td class="module">System.IO.PlafCompat</td></tr><tr><td class="src">autoDisplayMeter</td><td class="module"><a href="Data-Progress-Meter.html#v:autoDisplayMeter">Data.Progress.Meter</a></td></tr></table></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>MissingH-1.3.0.1: Large utility library (Index - B)</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();};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="alphabet"><ul><li><a href="doc-index-A.html">A</a></li><li><a href="doc-index-B.html">B</a></li><li><a href="doc-index-C.html">C</a></li><li><a href="doc-index-D.html">D</a></li><li><a href="doc-index-E.html">E</a></li><li><a href="doc-index-F.html">F</a></li><li><a href="doc-index-G.html">G</a></li><li><a href="doc-index-H.html">H</a></li><li><a href="doc-index-I.html">I</a></li><li><a href="doc-index-J.html">J</a></li><li><a href="doc-index-K.html">K</a></li><li><a href="doc-index-L.html">L</a></li><li><a href="doc-index-M.html">M</a></li><li><a href="doc-index-N.html">N</a></li><li><a href="doc-index-O.html">O</a></li><li><a href="doc-index-P.html">P</a></li><li><a href="doc-index-Q.html">Q</a></li><li><a href="doc-index-R.html">R</a></li><li><a href="doc-index-S.html">S</a></li><li><a href="doc-index-T.html">T</a></li><li><a href="doc-index-U.html">U</a></li><li><a href="doc-index-V.html">V</a></li><li><a href="doc-index-W.html">W</a></li><li><a href="doc-index-X.html">X</a></li><li><a href="doc-index-Z.html">Z</a></li><li><a href="doc-index-All.html">All</a></li></ul></div><div id="index"><p class="caption">Index - B</p><table><tr><td class="src">base</td><td class="module"><a href="Data-Quantity.html#v:base">Data.Quantity</a></td></tr><tr><td class="src">BinaryConvertible</td><td class="module"><a href="System-IO-Binary.html#t:BinaryConvertible">System.IO.Binary</a></td></tr><tr><td class="src">binaryOpts</td><td class="module"><a href="Data-Quantity.html#v:binaryOpts">Data.Quantity</a></td></tr><tr><td class="src">BinPacker</td><td class="module"><a href="Data-BinPacking.html#t:BinPacker">Data.BinPacking</a></td></tr><tr><td class="src">BinPackerError</td><td class="module"><a href="Data-BinPacking.html#t:BinPackerError">Data.BinPacking</a></td></tr><tr><td class="src">Bit</td><td class="module"><a href="Data-Compression-Inflate.html#t:Bit">Data.Compression.Inflate</a></td></tr><tr><td class="src">bits_to_word32</td><td class="module"><a href="Data-Compression-Inflate.html#v:bits_to_word32">Data.Compression.Inflate</a></td></tr><tr><td class="src">blockCopy</td><td class="module"><a href="System-IO-Binary.html#v:blockCopy">System.IO.Binary</a></td></tr><tr><td class="src">blockInteract</td><td class="module"><a href="System-IO-Binary.html#v:blockInteract">System.IO.Binary</a></td></tr><tr><td class="src">blockSpecialMode</td><td> </td></tr><tr><td class="alt">1 (Function)</td><td class="module">System.IO.PlafCompat</td></tr><tr><td class="alt">2 (Function)</td><td class="module"><a href="System-Posix-Consts.html#v:blockSpecialMode">System.Posix.Consts</a></td></tr><tr><td class="src">BoolList</td><td> </td></tr><tr><td class="alt">1 (Type/Class)</td><td class="module"><a href="Data-Hash-MD5.html#t:BoolList">Data.Hash.MD5</a></td></tr><tr><td class="alt">2 (Data Constructor)</td><td class="module"><a href="Data-Hash-MD5.html#v:BoolList">Data.Hash.MD5</a></td></tr><tr><td class="src">BPOther</td><td class="module"><a href="Data-BinPacking.html#v:BPOther">Data.BinPacking</a></td></tr><tr><td class="src">BPSizeTooLarge</td><td class="module"><a href="Data-BinPacking.html#v:BPSizeTooLarge">Data.BinPacking</a></td></tr><tr><td class="src">BPTooFewBins</td><td class="module"><a href="Data-BinPacking.html#v:BPTooFewBins">Data.BinPacking</a></td></tr><tr><td class="src">bracketCWD</td><td class="module"><a href="System-Path.html#v:bracketCWD">System.Path</a></td></tr><tr><td class="src">brackettmpdir</td><td class="module"><a href="System-Path.html#v:brackettmpdir">System.Path</a></td></tr><tr><td class="src">brackettmpdirCWD</td><td class="module"><a href="System-Path.html#v:brackettmpdirCWD">System.Path</a></td></tr><tr><td class="src">breakList</td><td class="module"><a href="Data-List-Utils.html#v:breakList">Data.List.Utils</a></td></tr><tr><td class="src">ByteCount</td><td class="module">System.IO.PlafCompat</td></tr></table></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>MissingH-1.3.0.1: Large utility library (Index - D)</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();};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="alphabet"><ul><li><a href="doc-index-A.html">A</a></li><li><a href="doc-index-B.html">B</a></li><li><a href="doc-index-C.html">C</a></li><li><a href="doc-index-D.html">D</a></li><li><a href="doc-index-E.html">E</a></li><li><a href="doc-index-F.html">F</a></li><li><a href="doc-index-G.html">G</a></li><li><a href="doc-index-H.html">H</a></li><li><a href="doc-index-I.html">I</a></li><li><a href="doc-index-J.html">J</a></li><li><a href="doc-index-K.html">K</a></li><li><a href="doc-index-L.html">L</a></li><li><a href="doc-index-M.html">M</a></li><li><a href="doc-index-N.html">N</a></li><li><a href="doc-index-O.html">O</a></li><li><a href="doc-index-P.html">P</a></li><li><a href="doc-index-Q.html">Q</a></li><li><a href="doc-index-R.html">R</a></li><li><a href="doc-index-S.html">S</a></li><li><a href="doc-index-T.html">T</a></li><li><a href="doc-index-U.html">U</a></li><li><a href="doc-index-V.html">V</a></li><li><a href="doc-index-W.html">W</a></li><li><a href="doc-index-X.html">X</a></li><li><a href="doc-index-Z.html">Z</a></li><li><a href="doc-index-All.html">All</a></li></ul></div><div id="index"><p class="caption">Index - D</p><table><tr><td class="src">DebVersion</td><td class="module"><a href="System-Debian.html#t:DebVersion">System.Debian</a></td></tr><tr><td class="src">decompress</td><td class="module"><a href="System-FileArchive-GZip.html#v:decompress">System.FileArchive.GZip</a></td></tr><tr><td class="src">defaultmtd</td><td class="module"><a href="Data-MIME-Types.html#v:defaultmtd">Data.MIME.Types</a></td></tr><tr><td class="src">defaultTimeSource</td><td class="module"><a href="Data-Progress-Tracker.html#v:defaultTimeSource">Data.Progress.Tracker</a></td></tr><tr><td class="src">DELETED</td><td class="module"><a href="Network-Email-Mailbox.html#v:DELETED">Network.Email.Mailbox</a></td></tr><tr><td class="src">deleteMessages</td><td class="module"><a href="Network-Email-Mailbox.html#v:deleteMessages">Network.Email.Mailbox</a></td></tr><tr><td class="src">delFromAL</td><td class="module"><a href="Data-List-Utils.html#v:delFromAL">Data.List.Utils</a></td></tr><tr><td class="src">depPart</td><td class="module"><a href="System-Debian-ControlParser.html#v:depPart">System.Debian.ControlParser</a></td></tr><tr><td class="src">detachDaemon</td><td class="module"><a href="System-Daemon.html#v:detachDaemon">System.Daemon</a></td></tr><tr><td class="src">DeviceID</td><td class="module">System.IO.PlafCompat, <a href="System-IO-HVFS.html#t:DeviceID">System.IO.HVFS</a></td></tr><tr><td class="src">deviceID</td><td> </td></tr><tr><td class="alt">1 (Function)</td><td class="module">System.IO.PlafCompat</td></tr><tr><td class="alt">2 (Function)</td><td class="module"><a href="System-IO-StatCompat.html#v:deviceID">System.IO.StatCompat</a></td></tr><tr><td class="src">directoryMode</td><td> </td></tr><tr><td class="alt">1 (Function)</td><td class="module">System.IO.PlafCompat</td></tr><tr><td class="alt">2 (Function)</td><td class="module"><a href="System-Posix-Consts.html#v:directoryMode">System.Posix.Consts</a></td></tr><tr><td class="src">dir_part</td><td class="module"><a href="System-Path-NameManip.html#v:dir_part">System.Path.NameManip</a></td></tr><tr><td class="src">displayMeter</td><td class="module"><a href="Data-Progress-Meter.html#v:displayMeter">Data.Progress.Meter</a></td></tr><tr><td class="src">DRAFT</td><td class="module"><a href="Network-Email-Mailbox.html#v:DRAFT">Network.Email.Mailbox</a></td></tr><tr><td class="src">dropWhileList</td><td class="module"><a href="Data-List-Utils.html#v:dropWhileList">Data.List.Utils</a></td></tr></table></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|
@@ -0,0 +1,4 @@
|
||||
<!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>MissingH-1.3.0.1: Large utility library (Index - E)</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();};
|
||||
//]]>
|
||||
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="alphabet"><ul><li><a href="doc-index-A.html">A</a></li><li><a href="doc-index-B.html">B</a></li><li><a href="doc-index-C.html">C</a></li><li><a href="doc-index-D.html">D</a></li><li><a href="doc-index-E.html">E</a></li><li><a href="doc-index-F.html">F</a></li><li><a href="doc-index-G.html">G</a></li><li><a href="doc-index-H.html">H</a></li><li><a href="doc-index-I.html">I</a></li><li><a href="doc-index-J.html">J</a></li><li><a href="doc-index-K.html">K</a></li><li><a href="doc-index-L.html">L</a></li><li><a href="doc-index-M.html">M</a></li><li><a href="doc-index-N.html">N</a></li><li><a href="doc-index-O.html">O</a></li><li><a href="doc-index-P.html">P</a></li><li><a href="doc-index-Q.html">Q</a></li><li><a href="doc-index-R.html">R</a></li><li><a href="doc-index-S.html">S</a></li><li><a href="doc-index-T.html">T</a></li><li><a href="doc-index-U.html">U</a></li><li><a href="doc-index-V.html">V</a></li><li><a href="doc-index-W.html">W</a></li><li><a href="doc-index-X.html">X</a></li><li><a href="doc-index-Z.html">Z</a></li><li><a href="doc-index-All.html">All</a></li></ul></div><div id="index"><p class="caption">Index - E</p><table><tr><td class="src">eitherToMonadError</td><td class="module"><a href="Data-Either-Utils.html#v:eitherToMonadError">Data.Either.Utils</a></td></tr><tr><td class="src">elemRIndex</td><td class="module"><a href="Data-List-Utils.html#v:elemRIndex">Data.List.Utils</a></td></tr><tr><td class="src">encodingsMap</td><td class="module"><a href="Data-MIME-Types.html#v:encodingsMap">Data.MIME.Types</a></td></tr><tr><td class="src">endswith</td><td class="module"><a href="Data-List-Utils.html#v:endswith">Data.List.Utils</a>, <a href="Data-String-Utils.html#v:endswith">Data.String.Utils</a></td></tr><tr><td class="src">epoch</td><td class="module"><a href="System-Time-Utils.html#v:epoch">System.Time.Utils</a></td></tr><tr><td class="src">EpochTime</td><td class="module">System.IO.PlafCompat, <a href="System-IO-HVFS.html#t:EpochTime">System.IO.HVFS</a></td></tr><tr><td class="src">epochToClockTime</td><td class="module"><a href="System-Time-Utils.html#v:epochToClockTime">System.Time.Utils</a></td></tr><tr><td class="src">escapeRe</td><td class="module"><a href="Data-String-Utils.html#v:escapeRe">Data.String.Utils</a></td></tr><tr><td class="src">extra</td><td class="module"><a href="System-FileArchive-GZip.html#v:extra">System.FileArchive.GZip</a></td></tr></table></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>
|