For GHC, implement the Typeable.hs macros using standalone deriving
[ghc-base.git] / Data / Either.hs
index 1c12897..b45609b 100644 (file)
@@ -1,4 +1,7 @@
 {-# LANGUAGE CPP, NoImplicitPrelude #-}
+#ifdef __GLASGOW_HASKELL__
+{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
+#endif
 
 -----------------------------------------------------------------------------
 -- |