staversion-0.2.4.1: What version is the package X in stackage lts-Y.ZZ?
MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Staversion.Internal.BuildPlan

Description

This is an internal module. End-users should not use it.

Synopsis

Entry APIs

data BuildPlan Source #

A BuildPlanMap associated with its PackageSource.

Instances

Instances details
HasVersions BuildPlan Source # 
Instance details

Defined in Staversion.Internal.BuildPlan

data BuildPlanManager Source #

Stateful manager for BuildPlans.

newBuildPlanManager Source #

Arguments

:: FilePath

path to the directory where build plans are hold.

-> Logger 
-> Bool

If True, it queries the Internet for build plans. Otherwise, it won't.

-> IO BuildPlanManager 

loadBuildPlan Source #

Arguments

:: BuildPlanManager 
-> [PackageName]

package names whose versions the user is interested in.

-> PackageSource 
-> IO (Either ErrorMsg BuildPlan)

the second result is the real (disambiguated) PackageSource.

Low-level APIs

For tests

_setLTSDisambiguator Source #

Arguments

:: BuildPlanManager 
-> Word

disambiguated LTS major version

-> Word

disambiguated LTS minor version

-> IO ()