Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 09cecd41fd5510f1b4c6358078b3faaf > files > 155

haskell-HXT-7.1-2mdv2007.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Control.Strategies.DeepSeq</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock.js" TYPE="text/javascript"
></SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>hxt-7.1: </TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Control.Strategies.DeepSeq</FONT
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
><P
>stolen from comp.lang.functional from Dean Herington
</P
><P
>DeepSeq.lhs  --  deep strict evaluation support
</P
><P
>The <TT
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
></TT
> class provides a method <TT
><A HREF="Control-Strategies-DeepSeq.html#v%3AdeepSeq"
>deepSeq</A
></TT
> that is similar to
seq except that it forces deep evaluation of its first argument
before returning its second argument.
</P
><P
>Instances of <TT
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
></TT
> are provided for Prelude types.  Other
instances must be supplied by users of this module.
</P
><P
>$Id: DeepSeq.lhs,v 1.5 2002<EM
>04</EM
>01 20:58:24 heringto Exp $
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Documentation</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A NAME="t%3ADeepSeq"
></A
><B
>DeepSeq</B
> a  <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
>Methods</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A NAME="v%3AdeepSeq"
></A
><B
>deepSeq</B
> :: a -&gt; b -&gt; b</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:DeepSeq')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:DeepSeq" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> Bool</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> Char</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> <A HREF="Text-XML-HXT-DOM-TypeDefs.html#t%3ADTDElem"
>DTDElem</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> Double</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> Float</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> Int</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> Integer</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> Ordering</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> <A HREF="Text-XML-HXT-DOM-TypeDefs.html#t%3AQName"
>QName</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> <A HREF="Text-XML-HXT-Arrow-XmlIOStateArrow.html#t%3AXIOSysState"
>XIOSysState</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> <A HREF="Text-XML-HXT-DOM-TypeDefs.html#t%3AXNode"
>XNode</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> ()</TD
></TR
><TR
><TD CLASS="decl"
>(<A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> b) =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (a, b)</TD
></TR
><TR
><TD CLASS="decl"
>(<A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> b, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> c) =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (a, b, c)</TD
></TR
><TR
><TD CLASS="decl"
>(<A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> b, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> c, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> d) =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (a, b, c, d)</TD
></TR
><TR
><TD CLASS="decl"
>(<A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> b, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> c, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> d, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> e) =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (a, b, c, d, e)</TD
></TR
><TR
><TD CLASS="decl"
>(<A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> b, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> c, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> d, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> e, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> f) =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (a, b, c, d, e, f)</TD
></TR
><TR
><TD CLASS="decl"
>(<A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> b, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> c, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> d, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> e, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> f, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> g) =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (a, b, c, d, e, f, g)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (a -&gt; b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (IO a)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (Maybe a)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (<A HREF="Data-Tree-NTree-TypeDefs.html#t%3ANTree"
>NTree</A
> a)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> us =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (<A HREF="Text-XML-HXT-Arrow-XmlIOStateArrow.html#t%3AXIOState"
>XIOState</A
> us)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> [a]</TD
></TR
><TR
><TD CLASS="decl"
>(<A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a, <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> b) =&gt; <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> (Either a b)</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3A%24%21%21"
></A
><B
>($!!)</B
> :: <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a =&gt; (a -&gt; b) -&gt; a -&gt; b</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Astrict"
></A
><B
>strict</B
> :: <A HREF="Control-Strategies-DeepSeq.html#t%3ADeepSeq"
>DeepSeq</A
> a =&gt; a -&gt; a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 0.8</TD
></TR
></TABLE
></BODY
></HTML
>