stack-1.1.2: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Types.BuildPlan

Contents

Description

Shared types for various stackage packages.

Synopsis

Types

data BuildPlan #

Instances

Eq BuildPlan # 
Show BuildPlan # 
FromJSON BuildPlan # 

Methods

parseJSON :: Value -> Parser BuildPlan

ToJSON BuildPlan # 

Methods

toJSON :: BuildPlan -> Value

toEncoding :: BuildPlan -> Encoding

newtype ExeName #

Name of an executable.

Constructors

ExeName 

Fields

Instances

Eq ExeName # 

Methods

(==) :: ExeName -> ExeName -> Bool #

(/=) :: ExeName -> ExeName -> Bool #

Ord ExeName # 
Show ExeName # 
IsString ExeName # 

Methods

fromString :: String -> ExeName #

Generic ExeName # 

Associated Types

type Rep ExeName :: * -> * #

Methods

from :: ExeName -> Rep ExeName x #

to :: Rep ExeName x -> ExeName #

Binary ExeName # 

Methods

put :: ExeName -> Put #

get :: Get ExeName #

putList :: [ExeName] -> Put #

NFData ExeName # 

Methods

rnf :: ExeName -> () #

Hashable ExeName # 

Methods

hashWithSalt :: Int -> ExeName -> Int #

hash :: ExeName -> Int #

FromJSON ExeName # 

Methods

parseJSON :: Value -> Parser ExeName

ToJSON ExeName # 

Methods

toJSON :: ExeName -> Value

toEncoding :: ExeName -> Encoding

HasStructuralInfo ExeName # 

Methods

structuralInfo :: Proxy * ExeName -> StructuralInfo

FromJSON a => FromJSON (Map ExeName a) # 

Methods

parseJSON :: Value -> Parser (Map ExeName a)

ToJSON a => ToJSON (Map ExeName a) # 

Methods

toJSON :: Map ExeName a -> Value

toEncoding :: Map ExeName a -> Encoding

type Rep ExeName # 
type Rep ExeName = D1 (MetaData "ExeName" "Stack.Types.BuildPlan" "stack-1.1.2-49dhs7u8deFCRPHWDHyZQB" True) (C1 (MetaCons "ExeName" PrefixI True) (S1 (MetaSel (Just Symbol "unExeName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data SimpleDesc #

A simplified package description that tracks:

  • Package dependencies
  • Build tool dependencies
  • Provided executables

It has fully resolved all conditionals

Constructors

SimpleDesc 

Fields

data Snapshots #

Most recent Nightly and newest LTS version per major release.

Constructors

Snapshots 

Instances

Show Snapshots # 
FromJSON Snapshots # 

Methods

parseJSON :: Value -> Parser Snapshots

data DepInfo #

Instances

Eq DepInfo # 

Methods

(==) :: DepInfo -> DepInfo -> Bool #

(/=) :: DepInfo -> DepInfo -> Bool #

Show DepInfo # 
Monoid DepInfo # 
FromJSON DepInfo # 

Methods

parseJSON :: Value -> Parser DepInfo

ToJSON DepInfo # 

Methods

toJSON :: DepInfo -> Value

toEncoding :: DepInfo -> Encoding

data SnapName #

The name of an LTS Haskell or Stackage Nightly snapshot.

Constructors

LTS !Int !Int 
Nightly !Day 

data MiniBuildPlan #

A simplified version of the BuildPlan + cabal file.

Instances

Eq MiniBuildPlan # 
Show MiniBuildPlan # 
Generic MiniBuildPlan # 

Associated Types

type Rep MiniBuildPlan :: * -> * #

Binary MiniBuildPlan # 
NFData MiniBuildPlan # 

Methods

rnf :: MiniBuildPlan -> () #

HasStructuralInfo MiniBuildPlan # 

Methods

structuralInfo :: Proxy * MiniBuildPlan -> StructuralInfo

HasSemanticVersion MiniBuildPlan # 

Associated Types

type SemanticVersion MiniBuildPlan :: Nat

type Rep MiniBuildPlan # 
type Rep MiniBuildPlan = D1 (MetaData "MiniBuildPlan" "Stack.Types.BuildPlan" "stack-1.1.2-49dhs7u8deFCRPHWDHyZQB" False) (C1 (MetaCons "MiniBuildPlan" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "mbpCompilerVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CompilerVersion)) (S1 (MetaSel (Just Symbol "mbpPackages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map PackageName MiniPackageInfo)))))
type SemanticVersion MiniBuildPlan # 
type SemanticVersion MiniBuildPlan = 0

data MiniPackageInfo #

Information on a single package for the MiniBuildPlan.

Constructors

MiniPackageInfo 

Fields

Instances

Eq MiniPackageInfo # 
Show MiniPackageInfo # 
Generic MiniPackageInfo # 
Binary MiniPackageInfo # 
NFData MiniPackageInfo # 

Methods

rnf :: MiniPackageInfo -> () #

HasStructuralInfo MiniPackageInfo # 

Methods

structuralInfo :: Proxy * MiniPackageInfo -> StructuralInfo

type Rep MiniPackageInfo # 

data CabalFileInfo #

Information on the contents of a cabal file

Constructors

CabalFileInfo 

Fields

Instances

Eq CabalFileInfo # 
Show CabalFileInfo # 
Generic CabalFileInfo # 

Associated Types

type Rep CabalFileInfo :: * -> * #

FromJSON CabalFileInfo # 

Methods

parseJSON :: Value -> Parser CabalFileInfo

ToJSON CabalFileInfo # 

Methods

toJSON :: CabalFileInfo -> Value

toEncoding :: CabalFileInfo -> Encoding

type Rep CabalFileInfo # 
type Rep CabalFileInfo = D1 (MetaData "CabalFileInfo" "Stack.Types.BuildPlan" "stack-1.1.2-49dhs7u8deFCRPHWDHyZQB" False) (C1 (MetaCons "CabalFileInfo" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "cfiSize") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "cfiHashes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text)))))

newtype GitSHA1 #

Constructors

GitSHA1 ByteString 

Instances

Eq GitSHA1 # 

Methods

(==) :: GitSHA1 -> GitSHA1 -> Bool #

(/=) :: GitSHA1 -> GitSHA1 -> Bool #

Show GitSHA1 # 
Generic GitSHA1 # 

Associated Types

type Rep GitSHA1 :: * -> * #

Methods

from :: GitSHA1 -> Rep GitSHA1 x #

to :: Rep GitSHA1 x -> GitSHA1 #

Binary GitSHA1 # 

Methods

put :: GitSHA1 -> Put #

get :: Get GitSHA1 #

putList :: [GitSHA1] -> Put #

NFData GitSHA1 # 

Methods

rnf :: GitSHA1 -> () #

HasStructuralInfo GitSHA1 # 

Methods

structuralInfo :: Proxy * GitSHA1 -> StructuralInfo

type Rep GitSHA1 # 
type Rep GitSHA1 = D1 (MetaData "GitSHA1" "Stack.Types.BuildPlan" "stack-1.1.2-49dhs7u8deFCRPHWDHyZQB" True) (C1 (MetaCons "GitSHA1" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))

renderSnapName :: SnapName -> Text #

Convert a SnapName into its short representation, e.g. lts-2.8, nightly-2015-03-05.

parseSnapName :: MonadThrow m => Text -> m SnapName #

Parse the short representation of a SnapName.

newtype SnapshotHash #

Constructors

SnapshotHash 

Instances

Eq SnapshotHash # 
Show SnapshotHash # 
Generic SnapshotHash # 

Associated Types

type Rep SnapshotHash :: * -> * #

type Rep SnapshotHash # 
type Rep SnapshotHash = D1 (MetaData "SnapshotHash" "Stack.Types.BuildPlan" "stack-1.1.2-49dhs7u8deFCRPHWDHyZQB" True) (C1 (MetaCons "SnapshotHash" PrefixI True) (S1 (MetaSel (Just Symbol "unShapshotHash") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))