[commit: packages/Cabal] ghc-head: Added known extensions: OverloadedLists, EmptyCase, AutoDeriveTypeable, NegativeLiterals, NumDecimals, NullaryTypeClasses (d40207e)

git at git.haskell.org git at git.haskell.org
Wed Sep 4 23:58:08 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=d40207efec3133735cee89aec17974ea6c307613

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

commit d40207efec3133735cee89aec17974ea6c307613
Author: Patrick Premont <ppremont at cognimeta.com>
Date:   Fri Aug 30 17:38:10 2013 +0200

    Added known extensions: OverloadedLists, EmptyCase, AutoDeriveTypeable, NegativeLiterals, NumDecimals, NullaryTypeClasses


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

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

diff --git a/Cabal/Language/Haskell/Extension.hs b/Cabal/Language/Haskell/Extension.hs
index b39bb39..293da75 100644
--- a/Cabal/Language/Haskell/Extension.hs
+++ b/Cabal/Language/Haskell/Extension.hs
@@ -662,6 +662,38 @@ data KnownExtension =
   -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/roles.html>
   | RoleAnnotations
 
+  -- | Enable overloading of list literals, arithmetic sequences and
+  -- list patterns using the 'IsList' type class.
+  --
+  -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/type-class-extensions.html#overloaded-lists>
+  | OverloadedLists
+
+  -- | Enables case expressions that have no alternatives. Also applies to lambda-case expressions if they are enabled.
+  --
+  -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#empty-case>
+  | EmptyCase
+
+  -- | Triggers the generation of derived 'Typeable' instances for every
+  -- datatype and type class declaration.
+  --
+  -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/deriving.html#auto-derive-typeable>
+  | AutoDeriveTypeable
+
+  -- | Desugars negative literals directly (without using negate).
+  --
+  -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#negative-literals>
+  | NegativeLiterals
+
+  -- | Allows the use of floating literal syntax for all instances of 'Num', including 'Int' and 'Integer'.
+  --
+  -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#num-decimals>
+  | NumDecimals
+
+  -- | Enables support for type classes with no type parameter.
+  --
+  -- * <http://www.haskell.org/ghc/docs/latest/html/users_guide/type-class-extensions.html#nullary-type-classes>
+  | NullaryTypeClasses
+
   deriving (Show, Read, Eq, Enum, Bounded, Typeable, Data)
 
 {-# DEPRECATED knownExtensions





More information about the ghc-commits mailing list