Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- dot :: DotOpts -> RIO Runner ()
- listDependencies :: ListDepsOpts -> RIO Runner ()
- data DotOpts = DotOpts {
- dotIncludeExternal :: !Bool
- dotIncludeBase :: !Bool
- dotDependencyDepth :: !(Maybe Int)
- dotPrune :: !(Set PackageName)
- dotTargets :: [Text]
- dotFlags :: !(Map ApplyCLIFlag (Map FlagName Bool))
- dotTestTargets :: Bool
- dotBenchTargets :: Bool
- dotGlobalHints :: Bool
- data DotPayload = DotPayload {}
- data ListDepsOpts = ListDepsOpts {}
- data ListDepsFormat
- data ListDepsFormatOpts = ListDepsFormatOpts {
- listDepsSep :: !Text
- listDepsLicense :: !Bool
- resolveDependencies :: (Applicative m, Monad m) => Maybe Int -> Map PackageName (Set PackageName, DotPayload) -> (PackageName -> m (Set PackageName, DotPayload)) -> m (Map PackageName (Set PackageName, DotPayload))
- printGraph :: (Applicative m, MonadIO m) => DotOpts -> Set PackageName -> Map PackageName (Set PackageName, DotPayload) -> m ()
- pruneGraph :: (Foldable f, Foldable g, Eq a) => f PackageName -> g PackageName -> Map PackageName (Set PackageName, a) -> Map PackageName (Set PackageName, a)
Documentation
listDependencies :: ListDepsOpts -> RIO Runner () Source #
Options record for stack dot
DotOpts | |
|
data DotPayload Source #
Information about a package in the dependency graph, when available.
DotPayload | |
|
Instances
Show DotPayload Source # | |
Defined in Stack.Dot showsPrec :: Int -> DotPayload -> ShowS # show :: DotPayload -> String # showList :: [DotPayload] -> ShowS # | |
Eq DotPayload Source # | |
Defined in Stack.Dot (==) :: DotPayload -> DotPayload -> Bool # (/=) :: DotPayload -> DotPayload -> Bool # |
data ListDepsOpts Source #
ListDepsOpts | |
|
data ListDepsFormat Source #
data ListDepsFormatOpts Source #
ListDepsFormatOpts | |
|
resolveDependencies :: (Applicative m, Monad m) => Maybe Int -> Map PackageName (Set PackageName, DotPayload) -> (PackageName -> m (Set PackageName, DotPayload)) -> m (Map PackageName (Set PackageName, DotPayload)) Source #
Resolve the dependency graph up to (Just depth) or until fixpoint is reached
:: (Applicative m, MonadIO m) | |
=> DotOpts | |
-> Set PackageName | all locals |
-> Map PackageName (Set PackageName, DotPayload) | |
-> m () |
Print a graphviz graph of the edges in the Map and highlight the given local packages
pruneGraph :: (Foldable f, Foldable g, Eq a) => f PackageName -> g PackageName -> Map PackageName (Set PackageName, a) -> Map PackageName (Set PackageName, a) Source #
pruneGraph dontPrune toPrune graph
prunes all packages in
graph
with a name in toPrune
and removes resulting orphans
unless they are in dontPrune