packages feed

haskell-gi 0.10.2 → 0.11

raw patch · 2 files changed

+12/−10 lines, 2 files

Files

haskell-gi.cabal view
@@ -1,5 +1,5 @@ name:                haskell-gi-version:             0.10.2+version:             0.11 synopsis:            Generate Haskell bindings for GObject Introspection capable libraries description:         Generate Haskell bindings for GObject Introspection capable libraries. This includes most notably                      Gtk+, but many other libraries in the GObject ecosystem provide introspection data too.
src/GI/Cabal.hs view
@@ -82,15 +82,15 @@  -} giModuleVersion :: Int -> Int -> Text-giModuleVersion major minor = T.pack $-    show haskellGIAPIVersion ++ "." ++ show major ++ "."-             ++ show minor ++ "." ++ show haskellGIMinor+giModuleVersion major minor =+    (T.pack . intercalate "." . map show) [haskellGIAPIVersion, major, minor,+                                           haskellGIMinor] --- | Smallest version not backwards compatible with the current--- version (according to PVP).-nextIncompatibleVersion :: Int -> Text-nextIncompatibleVersion major = T.pack $-    show haskellGIAPIVersion ++ "." ++ show (major+1)+-- | Determine the next version for which the minor of the package has+-- been bumped.+giNextMinor :: Int -> Int -> Text+giNextMinor major minor = (T.pack . intercalate "." . map show)+                          [haskellGIAPIVersion, major, minor+1]  -- | Determine the pkg-config name and installed version (major.minor -- only) for a given module, or throw an exception if that fails.@@ -170,7 +170,9 @@                                          depPackages (verbose cfg) pkMap               line . T.unpack $ "gi-" <> T.toLower depName <> " >= "                        <> giModuleVersion depMajor depMinor-                       <> " && < " <> nextIncompatibleVersion depMajor <> ","+                       <> " && < "+                       <> giNextMinor depMajor depMinor+                       <> ","           -- Our usage of these is very basic, no reason to put any           -- strong upper bounds.           line "bytestring >= 0.10,"