summaryrefslogtreecommitdiff
path: root/Portage/Version.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Portage/Version.hs')
-rw-r--r--Portage/Version.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Portage/Version.hs b/Portage/Version.hs
index 772343f..d87e9a6 100644
--- a/Portage/Version.hs
+++ b/Portage/Version.hs
@@ -1,3 +1,5 @@
+{-# LANGUAGE CPP #-}
+
{-|
Author : Andres Loeh <kosmikus@gentoo.org>
Stability : provisional
@@ -26,6 +28,10 @@ import qualified Text.PrettyPrint as Disp
import Text.PrettyPrint ((<>))
import qualified Data.Char as Char (isAlpha, isDigit)
+#if MIN_VERSION_base(4,11,0)
+import Prelude hiding ((<>))
+#endif
+
data Version = Version { versionNumber :: [Int] -- [1,42,3] ~= 1.42.3
, versionChar :: (Maybe Char) -- optional letter
, versionSuffix :: [Suffix]