[commit: base] master: Enable PolyKinds for Control.Category. (b1fc627)

Austin Seipp mad.one at gmail.com
Thu May 30 15:26:38 CEST 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

https://github.com/ghc/packages-base/commit/b1fc62762c56ccaa536d41b49a2aa0866e7420f7

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

commit b1fc62762c56ccaa536d41b49a2aa0866e7420f7
Author: Austin Seipp <aseipp at pobox.com>
Date:   Thu May 30 07:33:01 2013 -0500

    Enable PolyKinds for Control.Category.
    
    This change will allow us to make various new things instances of
    Category, such as promoted tuples.
    
    Original discussion from libraries at haskell.org:
    
      http://www.haskell.org/pipermail/libraries/2012-August/018268.html
    
    Fell off the radar. No complaints in the 2 week period since being
    brought up again:
    
      http://www.haskell.org/pipermail/libraries/2013-May/019845.html
    
    Patch from Edward Kmett (essentially.)
    
    Authored-by: Edward Kmett <ekmett at gmail.com>
    Signed-off-by: Austin Seipp <aseipp at pobox.com>

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

 Control/Category.hs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Control/Category.hs b/Control/Category.hs
index e7eeb1d..67ea60b 100644
--- a/Control/Category.hs
+++ b/Control/Category.hs
@@ -1,6 +1,10 @@
 {-# LANGUAGE Trustworthy #-}
 {-# LANGUAGE CPP #-}
 
+#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 706
+{-# LANGUAGE PolyKinds #-}
+#endif
+
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Control.Category





More information about the ghc-commits mailing list