codec-rpm 0.1.2 → 0.1.3
raw patch · 3 files changed
+12/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Codec.RPM.Version: instance GHC.Classes.Ord Codec.RPM.Version.DepOrdering
+ Codec.RPM.Version: instance GHC.Classes.Ord Codec.RPM.Version.DepRequirement
Files
- ChangeLog.md +4/−0
- Codec/RPM/Version.hs +6/−2
- codec-rpm.cabal +2/−2
ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.1.3++* Derive Ord for DepRequirement.+ ## 0.1.2 * Relax overly strict conduit-extra and text requirements.
Codec/RPM/Version.hs view
@@ -61,7 +61,7 @@ -- | Like 'Ordering', but with support for less-than-or-equal and greater-than-or-equal. data DepOrdering = LT | LTE | EQ | GTE | GT- deriving(Eq, Show)+ deriving(Eq, Ord, Show) -- | RPM supports the concept of dependencies between packages. Collectively, these dependencies -- are commonly referred to as PRCO - Provides, Requires, Conflicts, and Obsoletes. These@@ -86,8 +86,12 @@ -- -- It is not in the scope of this type to know what kind of relationship a 'DepRequirement' -- describes.+--+-- This type derives 'Ord' so that it can be easily be used with collection types, but the+-- derived ordering will not make sense for the purpose of comparing requirements. Use+-- 'satisfies' to determine if requirements match one another. data DepRequirement = DepRequirement T.Text (Maybe (DepOrdering, EVR))- deriving (Eq, Show)+ deriving (Eq, Ord, Show) -- | Compare two version numbers and return an 'Ordering'. vercmp :: T.Text -> T.Text -> Ordering
codec-rpm.cabal view
@@ -1,5 +1,5 @@ name: codec-rpm-version: 0.1.2+version: 0.1.3 synopsis: A library for manipulating RPM files description: This module provides a library for reading RPM files and converting them into useful data structures. There is currently no way to operate in@@ -10,7 +10,7 @@ maintainer: clumens@redhat.com license: LGPL license-file: LICENSE-cabal-version: >= 1.10+cabal-version: >= 1.18 build-type: Simple extra-source-files: ChangeLog.md,