[commit: packages/binary] master: Remove unused imports. (e30a2c6)
git at git.haskell.org
git at git.haskell.org
Sat Nov 17 13:17:51 UTC 2018
Repository : ssh://git@git.haskell.org/binary
On branch : master
Link : http://git.haskell.org/packages/binary.git/commitdiff/e30a2c64a68199e645fb1d7b4cf1987b083dc20c
>---------------------------------------------------------------
commit e30a2c64a68199e645fb1d7b4cf1987b083dc20c
Author: David Eichmann <EichmannD at gmail.com>
Date: Tue Nov 6 17:54:23 2018 +0000
Remove unused imports.
Due to a bug in ghc, some unused imports do not yield warnings.
This commit will remove such unused imports in preparation for
the ghc bug fix (see https://ghc.haskell.org/trac/ghc/ticket/13064).
>---------------------------------------------------------------
e30a2c64a68199e645fb1d7b4cf1987b083dc20c
src/Data/Binary/Class.hs | 2 ++
src/Data/Binary/Generic.hs | 2 ++
2 files changed, 4 insertions(+)
diff --git a/src/Data/Binary/Class.hs b/src/Data/Binary/Class.hs
index b44001d..d9c157d 100644
--- a/src/Data/Binary/Class.hs
+++ b/src/Data/Binary/Class.hs
@@ -59,7 +59,9 @@ import Control.Applicative
import Data.Monoid (mempty)
#endif
import qualified Data.Monoid as Monoid
+#if !MIN_VERSION_base(4,11,0)
import Data.Monoid ((<>))
+#endif
#if MIN_VERSION_base(4,8,0)
import Data.Functor.Identity (Identity (..))
#endif
diff --git a/src/Data/Binary/Generic.hs b/src/Data/Binary/Generic.hs
index feb85d7..89f67f2 100644
--- a/src/Data/Binary/Generic.hs
+++ b/src/Data/Binary/Generic.hs
@@ -30,7 +30,9 @@ import Data.Binary.Get
import Data.Binary.Put
import Data.Bits
import Data.Word
+#if !MIN_VERSION_base(4,11,0)
import Data.Monoid ((<>))
+#endif
#ifdef HAS_DATA_KIND
import Data.Kind
#endif
More information about the ghc-commits
mailing list