hsdev-0.2.1.0: Haskell development library
Data.Deps
Synopsis
data Deps a Source #
Dependency map
Constructors
Fields
Instances
Methods
mempty :: Deps a #
mappend :: Deps a -> Deps a -> Deps a #
mconcat :: [Deps a] -> Deps a #
ix :: Index (Deps a) -> Traversal' (Deps a) (IxValue (Deps a)) #
at :: Index (Deps a) -> Lens' (Deps a) (Maybe (IxValue (Deps a))) #
depsMap :: Lens (Deps a) (Deps b) (Map a [a]) (Map b [b]) Source #
mapDeps :: Ord b => (a -> b) -> Deps a -> Deps b Source #
dep :: a -> a -> Deps a Source #
Make single dependency
deps :: a -> [a] -> Deps a Source #
Make dependency for one target, note that order of dependencies is matter
inverse :: Ord a => Deps a -> Deps a Source #
Inverse dependencies, i.e. make map where keys are dependencies and elements are targets depends on it
flatten :: Ord a => Deps a -> Deps a Source #
Flatten dependencies so that there will be no indirect dependencies