diff options
Diffstat (limited to 'docs/users_guide/glasgow_exts.xml')
-rw-r--r-- | docs/users_guide/glasgow_exts.xml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index 86ceb06298..83576efd1f 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -10470,9 +10470,6 @@ While the following definitions are rejected: ref6 = let x = 1 in static x ref7 y = static (let x = 1 in y) </programlisting> -Note that currently, the body <literal>e</literal> in <literal>static -e</literal> is restricted to a single identifier when at the GHCi -prompt. </para> </sect2> @@ -10502,13 +10499,14 @@ That being said, with the appropriate use of wrapper datatypes, the above limitations induce no loss of generality: <programlisting> {-# LANGUAGE ConstraintKinds #-} -{-# LANGUAGE DerivingDataTypeable #-} +{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE StaticPointers #-} import Control.Monad.ST +import Data.Typeable import GHC.StaticPtr data Dict c = c => Dict |