Cabal-syntax-3.12.1.0: A library for working with .cabal files

Safe Haskell | None
Language | Haskell2010

Distribution.Types.DependencyMap

Synopsis

- data DependencyMap
- toDepMap :: [Dependency] -> DependencyMap
- fromDepMap :: DependencyMap -> [Dependency]
- constrainBy :: DependencyMap -> [PackageVersionConstraint] -> DependencyMap

# Documentation

data DependencyMap Source #

A map of dependencies. Newtyped since the default monoid instance is not appropriate. The monoid instance uses `intersectVersionRanges`.

#### Instances

Instances details

Monoid DependencyMap Source # |
Instance details Defined in Distribution.Types.DependencyMap Methods mempty :: DependencyMap # mappend :: DependencyMap -> DependencyMap -> DependencyMap # mconcat :: [DependencyMap] -> DependencyMap #
Semigroup DependencyMap Source # |
Instance details Defined in Distribution.Types.DependencyMap Methods (<>) :: DependencyMap -> DependencyMap -> DependencyMap # sconcat :: NonEmpty DependencyMap -> DependencyMap # stimes :: Integral b => b -> DependencyMap -> DependencyMap #
Read DependencyMap Source # |
Instance details Defined in Distribution.Types.DependencyMap Methods readsPrec :: Int -> ReadS DependencyMap # readList :: ReadS [DependencyMap] # readPrec :: ReadPrec DependencyMap # readListPrec :: ReadPrec [DependencyMap] #
Show DependencyMap Source # |
Instance details Defined in Distribution.Types.DependencyMap Methods showsPrec :: Int -> DependencyMap -> ShowS # show :: DependencyMap -> String # showList :: [DependencyMap] -> ShowS #
Eq DependencyMap Source # |
Instance details Defined in Distribution.Types.DependencyMap Methods (==) :: DependencyMap -> DependencyMap -> Bool # (/=) :: DependencyMap -> DependencyMap -> Bool #

toDepMap :: [Dependency] -> DependencyMap Source #

fromDepMap :: DependencyMap -> [Dependency] Source #

constrainBy :: DependencyMap -> [PackageVersionConstraint] -> DependencyMap Source #