stack-1.0.2: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Build.Target

Contents

Description

Parsing command line targets

Synopsis

Types

type ComponentName = Text Source

The name of a component, which applies to executables, test suites, and benchmarks

data UnresolvedComponent Source

Either a fully resolved component, or a component name that could be either an executable, test, or benchmark

data RawTarget a where Source

Raw command line input, without checking against any databases or list of locals. Does not deal with directories

data LocalPackageView Source

A view of a local package needed for resolving components

data NeedTargets Source

Need targets, e.g. `stack build` or allow none?

Parsers

parseRawTarget :: Text -> Maybe (RawTarget HasIdents) Source

If this function returns Nothing, the input should be treated as a directory.

parseTargets Source

Arguments

:: (MonadThrow m, MonadIO m) 
=> NeedTargets

need at least one target

-> Bool

using implicit global project?

-> Map PackageName Version

snapshot

-> Map PackageName Version

extra deps

-> Map PackageName LocalPackageView 
-> Path Abs Dir

current directory

-> [Text]

command line targets

-> m (Map PackageName Version, Map PackageName SimpleTarget)