summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FunctorToMaybe.hs5
-rw-r--r--KeyRing.hs3
2 files changed, 8 insertions, 0 deletions
diff --git a/FunctorToMaybe.hs b/FunctorToMaybe.hs
index 0fd6b7f..a718010 100644
--- a/FunctorToMaybe.hs
+++ b/FunctorToMaybe.hs
@@ -18,8 +18,13 @@
18-- implemented the 'FunctorToMaybe' type class, then 'functorToEither' could be used to 18-- implemented the 'FunctorToMaybe' type class, then 'functorToEither' could be used to
19-- seperate the noise from the work-product. 19-- seperate the noise from the work-product.
20-- 20--
21{-# LANGUAGE CPP #-}
21module FunctorToMaybe where 22module FunctorToMaybe where
22 23
24#if MIN_VERSION_base(4,6,0)
25#else
26import Control.Monad.Instances
27#endif
23 28
24-- | The 'FunctorToMaybe' class genaralizes 'Maybe' in that the 29-- | The 'FunctorToMaybe' class genaralizes 'Maybe' in that the
25-- there may be multiple null elements. 30-- there may be multiple null elements.
diff --git a/KeyRing.hs b/KeyRing.hs
index 265b7fa..66771f6 100644
--- a/KeyRing.hs
+++ b/KeyRing.hs
@@ -54,6 +54,9 @@ import Data.Binary ( encode )
54import Data.IORef 54import Data.IORef
55import System.Posix.IO (fdToHandle,fdRead) 55import System.Posix.IO (fdToHandle,fdRead)
56import qualified Data.Traversable as Traversable (mapM,forM,sequence) 56import qualified Data.Traversable as Traversable (mapM,forM,sequence)
57#if ! MIN_VERSION_base(4,6,0)
58import GHC.Exts ( Down(..) )
59#endif
57 60
58 61
59 62