mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-22 17:01:57 +01:00
Documented VersionChange type
This commit is contained in:
parent
a192dcf1d2
commit
c43340d40d
@ -18,6 +18,11 @@ type Version = Text
|
|||||||
|
|
||||||
type SnapshotDiff = HashMap PackageName VersionChange
|
type SnapshotDiff = HashMap PackageName VersionChange
|
||||||
|
|
||||||
|
-- | Versions of a package as it occurs in the listings provided to `snapshotDiff`.
|
||||||
|
--
|
||||||
|
-- Would be represented with `These v1 v2` if the package is present in both listings,
|
||||||
|
-- otherwise it would be `This v1` if the package is present only in the first listing,
|
||||||
|
-- or `That v2` if only in the second.
|
||||||
newtype VersionChange = VersionChange { unVersionChange :: These Version Version }
|
newtype VersionChange = VersionChange { unVersionChange :: These Version Version }
|
||||||
|
|
||||||
changed :: VersionChange -> Bool
|
changed :: VersionChange -> Bool
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user