Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- simpleParseVersion :: String -> Maybe Version
- (?!) :: Maybe a -> e -> Either e a
- (?!?) :: Either e a -> (e -> e') -> Either e' a
- data MergeResult a b
- = OnlyInLeft a
- | InBoth a b
- | OnlyInRight b
- mergeMaps :: Ord k => Map k a -> Map k b -> Map k (MergeResult a b)
- diffMaps :: (Eq a, Ord k) => Map k a -> Map k a -> Map k (MergeResult a a)
- matchMaps :: Ord k => Map k a -> Map k b -> Either (k, Either a b) (Map k (a, b))
Documentation
Utils for merging and diffing maps
data MergeResult a b Source #
OnlyInLeft a | |
InBoth a b | |
OnlyInRight b |
Instances
(Eq a, Eq b) => Eq (MergeResult a b) Source # | |
Defined in Data.API.Utils (==) :: MergeResult a b -> MergeResult a b -> Bool # (/=) :: MergeResult a b -> MergeResult a b -> Bool # | |
(Show a, Show b) => Show (MergeResult a b) Source # | |
Defined in Data.API.Utils showsPrec :: Int -> MergeResult a b -> ShowS # show :: MergeResult a b -> String # showList :: [MergeResult a b] -> ShowS # |