prune-juice-0.7: Prune unused Haskell dependencies
Safe HaskellNone
LanguageHaskell2010

Data.Prune.Apply

Description

 
Synopsis

Documentation

data Apply (a :: ApplyStrategy) where Source #

Continuation GADT for applying changes to a cabal file.

data SomeApply Source #

Wrap Apply in a data type so that it can be passed to functions without escaping the inner type.

Constructors

forall (a :: ApplyStrategy). SomeApply 

Fields

runApply :: SomeApply -> Package -> Set DependencyName -> Maybe Compilable -> ShouldApply -> IO (Bool, SomeApply) Source #

Iterate on a cabal file by pruning one target at a time. Return whether the command-line call to prune-juice should fail.

writeApply :: SomeApply -> IO () Source #

Write the series of changes to the cabal file.