Skip to content

Commit

Permalink
Checkpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Eisenberg committed Jun 20, 2013
1 parent e015f50 commit f522956
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/users_guide/glasgow_exts.xml
Expand Up @@ -4872,7 +4872,7 @@ representation).</para>
<title>Type families</title>

<para>
<firstterm>Indexed type families</firstterm> are a new GHC extension to
<firstterm>Indexed type families</firstterm> form an extension to
facilitate type-level
programming. Type families are a generalisation of <firstterm>associated
data types</firstterm>
Expand Down Expand Up @@ -4915,11 +4915,11 @@ representation).</para>
indices.
</para>
<para>
Indexed type families come in two flavours: <firstterm>data
families</firstterm> and <firstterm>type synonym
families</firstterm>. They are the indexed family variants of algebraic
data types and type synonyms, respectively. The instances of data families
can be data types and newtypes.
Indexed type families come in three flavours: <firstterm>data
families</firstterm>, <firstterm>open type synonym families</firstterm>, and
<firstterm>closed type synonym families</firstterm>. They are the indexed
family variants of algebraic data types and type synonyms, respectively. The
instances of data families can be data types and newtypes.
</para>
<para>
Type families are enabled by the flag <option>-XTypeFamilies</option>.
Expand Down Expand Up @@ -5027,7 +5027,7 @@ data instance G [a] b where
</para>

<para>
Even if type families are defined as toplevel declarations, functions
Even if data families are defined as toplevel declarations, functions
that perform different computations for different family instances may still
need to be defined as methods of type classes. In particular, the
following is not possible:
Expand Down

0 comments on commit f522956

Please sign in to comment.