hix-0.8.0: Haskell/Nix development build tools
Safe HaskellNone
LanguageGHC2021

Hix.Managed.Diff

Synopsis

Documentation

reifyChangeWith :: b -> (a -> b) -> Change d a -> b Source #

reifyChange :: a -> Change d a -> a Source #

diff :: (a -> a -> Maybe d) -> a -> a -> Change d a Source #

diffMaybe :: (a -> a -> Maybe d) -> Maybe a -> Maybe a -> Change d a Source #

updateBoundsChange :: VersionBounds -> BoundsChange -> BoundsChange Source #

We never want to remove any bounds, but mutations only return the bound they have targeted, so we need to fall back to the original bounds when updating.

updateVersionChanges :: (NMap vmap MutableDep (Maybe Version) s1, NMap map MutableDep VersionChange s2) => vmap -> map -> map Source #

initChanges :: (NMap map1 k (Maybe v1) s1, NMap map2 k (Change d v1) s2) => map1 -> map2 Source #