Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
An API for merging together two collections of library dependencies.
Synopsis
- data LibdepDiffOp a
- = AddLibdep !a
- | AddBothLibdeps !a !a
- | DeleteLibdep
- diffLibdeps :: (Ord k, Eq v) => ThreeWay (Map k v) -> Map k (LibdepDiffOp v)
- applyLibdepsDiff :: forall k v. Ord k => (Set k -> k -> (k, k)) -> ThreeWay (Map k v) -> Map k (LibdepDiffOp v) -> Map k v
- getTwoFreshLibdepNames :: Set NameSegment -> NameSegment -> (NameSegment, NameSegment)
Documentation
data LibdepDiffOp a Source #
AddLibdep !a | |
AddBothLibdeps !a !a | |
DeleteLibdep |
:: (Ord k, Eq v) | |
=> ThreeWay (Map k v) | Library dependencies. |
-> Map k (LibdepDiffOp v) | Library dependencies diff. |
Perform a three-way diff on two collections of library dependencies.
getTwoFreshLibdepNames :: Set NameSegment -> NameSegment -> (NameSegment, NameSegment) Source #