stack-1.6.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.PackageLocation

Description

Deal with downloading, cloning, or whatever else is necessary for getting a PackageLocation into something Stack can work with.

Synopsis

Documentation

resolveSinglePackageLocation Source #

Arguments

:: HasConfig env 
=> Path Abs Dir

project root

-> PackageLocation FilePath 
-> RIO env (Path Abs Dir) 

Same as resolveMultiPackageLocation, but works on a SinglePackageLocation.

resolveMultiPackageLocation Source #

Arguments

:: HasConfig env 
=> Path Abs Dir

project root

-> PackageLocation Subdirs 
-> RIO env [(Path Abs Dir, PackageLocation FilePath)] 

Resolve a PackageLocation into a path, downloading and cloning as necessary.

Returns the updated PackageLocation value with just a single subdir (if relevant).

parseSingleCabalFile Source #

Arguments

:: HasConfig env 
=> Path Abs Dir

project root, used for checking out necessary files

-> Bool

print warnings?

-> PackageLocation FilePath 
-> RIO env LocalPackageView 

parseSingleCabalFileIndex Source #

Arguments

:: HasConfig env 
=> (PackageIdentifierRevision -> IO ByteString)

lookup in index

-> Path Abs Dir

project root, used for checking out necessary files

-> PackageLocationIndex FilePath 
-> RIO env GenericPackageDescription 

Parse the cabal files present in the given 'PackageLocationIndex FilePath'.

parseMultiCabalFiles Source #

Arguments

:: HasConfig env 
=> Path Abs Dir

project root, used for checking out necessary files

-> Bool

print warnings?

-> PackageLocation Subdirs 
-> RIO env [LocalPackageView] 

Load and parse cabal files into GenericPackageDescriptions