summaryrefslogtreecommitdiff
path: root/Portage/PackageId.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Portage/PackageId.hs')
-rw-r--r--Portage/PackageId.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Portage/PackageId.hs b/Portage/PackageId.hs
index f97148c..2aa8f0a 100644
--- a/Portage/PackageId.hs
+++ b/Portage/PackageId.hs
@@ -1,3 +1,5 @@
+{-# LANGUAGE CPP #-}
+
-- | Portage package identifiers, which unlike Cabal ones include a category.
--
module Portage.PackageId (
@@ -31,6 +33,10 @@ import qualified Data.Char as Char (isAlphaNum, isSpace, toLower)
import Distribution.Text(display)
import System.FilePath ( (</>) )
+#if MIN_VERSION_base(4,11,0)
+import Prelude hiding ((<>))
+#endif
+
newtype Category = Category { unCategory :: String }
deriving (Eq, Ord, Show, Read)