[commit: packages/binary] master: Import Control.Applicative for older GHC (cbc3e2d)

git at git.haskell.org git at git.haskell.org
Tue Feb 2 21:04:51 UTC 2016


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

On branch  : master
Link       : http://git.haskell.org/packages/binary.git/commitdiff/cbc3e2d602684b1d1906f7bc3858db0f27d77af2

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

commit cbc3e2d602684b1d1906f7bc3858db0f27d77af2
Author: Alexey Khudyakov <alexey.skladnoy at gmail.com>
Date:   Sun Nov 15 18:45:47 2015 +0300

    Import Control.Applicative for older GHC


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

cbc3e2d602684b1d1906f7bc3858db0f27d77af2
 src/Data/Binary/Get.hs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Data/Binary/Get.hs b/src/Data/Binary/Get.hs
index db96a97..afc391b 100644
--- a/src/Data/Binary/Get.hs
+++ b/src/Data/Binary/Get.hs
@@ -215,6 +215,9 @@ module Data.Binary.Get (
     , remaining -- DEPRECATED
     , getBytes -- DEPRECATED
     ) where
+#if ! MIN_VERSION_base(4,8,0)
+import Control.Applicative
+#endif
 
 import Foreign
 import qualified Data.ByteString as B



More information about the ghc-commits mailing list