Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 205eabd32f631ce3da3bbeb9faa690a6 > files > 67

ghc-type-level-devel-0.2.4-4.fc14.i686.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
>type-level-0.2.4: Type-level programming library</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.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"
>type-level-0.2.4: Type-level programming library</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="section1"
>type-level-0.2.4: Type-level programming library</TD
></TR
><TR
><TD CLASS="doc"
>This library permits performing computations on the type-level. Type-level
functions are implemented using functional dependencies of multi
parameter type classes.
To date, Booleans and Numerals (Naturals and Positives) are
supported. With regard to Numerals, there is support for common
arithmetic operations (addition, substraction, multiplication,
division, exponientation, logarithm, maximum, comparison, GCD)
over natural numbers (using a decimal representation to make
compile-time errors friendlier).
Although making use of type-level computations might seem devious and
obfuscated at first sight, it is indeed useful in practice to implement
lightweight dependent types such us number-parameterized types (e.g. an array
type parameterized by the array's size or a modular group type Zn
parameterized by the modulus).
Here is a tutorial on type-level numerals and how to use them to
implement numerically-parameterized vectors: <A HREF="http://www.ict.kth.se/forsyde/files/tutorial/tutorial.html#FSVec"
>http://www.ict.kth.se/forsyde/files/tutorial/tutorial.html#FSVec</A
>
</TD
></TR
><TR
><TD CLASS="section1"
>Modules</TD
></TR
><TR
><TD
><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0"
><TR
><TD STYLE="width: 50em"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:0')" ALT="show/hide"
>Data</TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"
><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:0" STYLE="display:block;"
><TR
><TD STYLE="width: 48em"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:1')" ALT="show/hide"
><A HREF="Data-TypeLevel.html"
>Data.TypeLevel</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"
><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:1" STYLE="display:block;"
><TR
><TD STYLE="padding-left: 1.25em;width: 46em"
><A HREF="Data-TypeLevel-Bool.html"
>Data.TypeLevel.Bool</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="width: 46em"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:2')" ALT="show/hide"
><A HREF="Data-TypeLevel-Num.html"
>Data.TypeLevel.Num</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"
><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:2" STYLE="display:block;"
><TR
><TD STYLE="width: 44em"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'n:3')" ALT="show/hide"
><A HREF="Data-TypeLevel-Num-Aliases.html"
>Data.TypeLevel.Num.Aliases</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding: 0; padding-left: 2em" COLSPAN="3"
><TABLE CLASS="vanilla2" CELLSPACING="0" CELLPADDING="0" ID="n:3" STYLE="display:block;"
><TR
><TD STYLE="padding-left: 1.25em;width: 42em"
><A HREF="Data-TypeLevel-Num-Aliases-TH.html"
>Data.TypeLevel.Num.Aliases.TH</A
></TD
><TD
></TD
><TD
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 44em"
><A HREF="Data-TypeLevel-Num-Ops.html"
>Data.TypeLevel.Num.Ops</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 44em"
><A HREF="Data-TypeLevel-Num-Reps.html"
>Data.TypeLevel.Num.Reps</A
></TD
><TD
></TD
><TD
></TD
></TR
><TR
><TD STYLE="padding-left: 1.25em;width: 44em"
><A HREF="Data-TypeLevel-Num-Sets.html"
>Data.TypeLevel.Num.Sets</A
></TD
><TD
></TD
><TD
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.1</TD
></TR
></TABLE
></BODY
></HTML
>