stack-3.7.1: The Haskell Tool Stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

Stack.Types.GhcPkgExe

Description

 
Synopsis

Documentation

data PackageArg Source #

Represents how a package may be specified by a user on the command line.

Constructors

Id GlobPackageIdentifier

A package identifier foo-0.1, or a glob foo-*

IUId UnitId

An installed package ID foo-0.1-HASH. This is guaranteed to uniquely match a single entry in the package database.

Substring String (String -> Bool)

A glob against the package name. The first string is the literal glob, the second is a function which returns True if the argument matches.

Instances

Instances details
Show PackageArg Source # 
Instance details

Defined in Stack.Types.GhcPkgExe

Methods

showsPrec :: Int -> PackageArg -> ShowS

show :: PackageArg -> String #

showList :: [PackageArg] -> ShowS