stackage-curator-0.7.2.1: Tools for curating Stackage bundles

Safe HaskellNone
LanguageHaskell2010

Stackage.Prelude

Synopsis

Documentation

simplifyVersionRange :: VersionRange -> VersionRange Source

There seems to be a bug in Cabal where serializing and deserializing version ranges winds up with different representations. So we have a super-simplifier to deal with that.

topologicalSort Source

Arguments

:: (Ord key, Show key, MonadThrow m, Typeable key) 
=> (value -> finalValue) 
-> (value -> Set key)

deps

-> Map key value 
-> m (Vector (key, finalValue)) 

Topologically sort so that items with dependencies occur after those dependencies.

copyDir :: FilePath -> FilePath -> IO () Source