[commit: packages/containers] develop-0.6, develop-0.6-questionable, master: Comment various conditional imports. (9df67f5)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:41:18 UTC 2015


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

On branches: develop-0.6,develop-0.6-questionable,master
Link       : http://git.haskell.org/packages/containers.git/commitdiff/9df67f5121ef14c865b4fae9db96aebf083dfb6c

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

commit 9df67f5121ef14c865b4fae9db96aebf083dfb6c
Author: Milan Straka <fox at ucw.cz>
Date:   Mon Dec 15 17:57:20 2014 +0100

    Comment various conditional imports.


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

9df67f5121ef14c865b4fae9db96aebf083dfb6c
 Data/Sequence.hs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Data/Sequence.hs b/Data/Sequence.hs
index 71ded95..2e8f84c 100644
--- a/Data/Sequence.hs
+++ b/Data/Sequence.hs
@@ -172,17 +172,22 @@ import Data.Foldable (Foldable(foldl, foldl1, foldr, foldr1, foldMap), foldl', t
 import Data.Traversable
 import Data.Typeable
 
+-- GHC specific stuff
 #ifdef __GLASGOW_HASKELL__
 import GHC.Exts (build)
 import Text.Read (Lexeme(Ident), lexP, parens, prec,
     readPrec, readListPrec, readListPrecDefault)
 import Data.Data
 #endif
+
+-- Coercion on GHC 7.8+
 #if __GLASGOW_HASKELL__ >= 708
 import Data.Coerce
 import qualified GHC.Exts
 #else
 #endif
+
+-- Identity functor on base 4.8 (GHC 7.10+)
 #if MIN_VERSION_base(4,8,0)
 import Data.Functor.Identity (Identity(..))
 #endif



More information about the ghc-commits mailing list