[commit: packages/Cabal] ghc-head: Add ExplicitNamespaces and AllowAmbiguousTypes extensions (e41a92a)

git at git.haskell.org git at git.haskell.org
Wed Sep 4 23:58:36 CEST 2013


Repository : ssh://git@git.haskell.org/Cabal

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=e41a92a7bbad928d14d4bf1291d23e6bd6ce169e

>---------------------------------------------------------------

commit e41a92a7bbad928d14d4bf1291d23e6bd6ce169e
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Sep 3 18:18:13 2013 +0200

    Add ExplicitNamespaces and AllowAmbiguousTypes extensions


>---------------------------------------------------------------

e41a92a7bbad928d14d4bf1291d23e6bd6ce169e
 Cabal/Language/Haskell/Extension.hs |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Cabal/Language/Haskell/Extension.hs b/Cabal/Language/Haskell/Extension.hs
index 293da75..809bce2 100644
--- a/Cabal/Language/Haskell/Extension.hs
+++ b/Cabal/Language/Haskell/Extension.hs
@@ -694,6 +694,16 @@ data KnownExtension =
   -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/type-class-extensions.html#nullary-type-classes>
   | NullaryTypeClasses
 
+  -- | Enable explicit namespaces in module import/export lists.
+  --
+  -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#explicit-namespaces>
+  | ExplicitNamespaces
+
+  -- | Allow the user to write ambiguous types, and the type inference engine to infer them.
+  --
+  -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/other-type-extensions.html#ambiguity>
+  | AllowAmbiguousTypes
+
   deriving (Show, Read, Eq, Enum, Bounded, Typeable, Data)
 
 {-# DEPRECATED knownExtensions





More information about the ghc-commits mailing list