From: Ian Lynagh Date: Sat, 18 Dec 2010 15:01:21 +0000 (+0000) Subject: Document GADTSyntax extension X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=14f9af49db1672e023ac8d8c506b42bc5400a787 Document GADTSyntax extension --- diff --git a/docs/users_guide/flags.xml b/docs/users_guide/flags.xml index 2bcb5e6..a9c0184 100644 --- a/docs/users_guide/flags.xml +++ b/docs/users_guide/flags.xml @@ -763,6 +763,13 @@ + + Enable generalised algebraic data type syntax. + + dynamic + + + Enable type families. dynamic diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index a193088..ddbd2ec 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -2434,7 +2434,8 @@ declarations. Define your own instances! Declaring data types with explicit constructor signatures -GHC allows you to declare an algebraic data type by +When the GADTSyntax extension is enabled, +GHC allows you to declare an algebraic data type by giving the type signatures of constructors explicitly. For example: data Maybe a where