stackage-0.2.1.2: "Stable Hackage," tools for creating a vetted set of packages from Hackage.

Safe HaskellNone
LanguageHaskell2010

Stackage.Prelude

Synopsis

Documentation

display :: Text a => a -> Text Source

simpleParse :: (MonadThrow m, Text a, Typeable a) => Text -> m a Source

newtype Maintainer Source

Constructors

Maintainer 

Fields

unMaintainer :: Text
 

newtype ExeName Source

Name of an executable.

Constructors

ExeName 

Fields

unExeName :: Text
 

Instances

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.