stackage-curator-0.15.0.0: Tools for curating Stackage bundles

Safe HaskellNone
LanguageHaskell2010

Stackage.Types

Contents

Description

Shared types for various stackage packages.

Synopsis

Types

type DocMap = Map Text PackageDocs Source #

Package name is key

newtype ExeName Source #

Name of an executable.

Constructors

ExeName 

Fields

Instances

Eq ExeName Source # 

Methods

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

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

Ord ExeName Source # 
Show ExeName Source # 
IsString ExeName Source # 

Methods

fromString :: String -> ExeName #

Generic ExeName Source # 

Associated Types

type Rep ExeName :: * -> * #

Methods

from :: ExeName -> Rep ExeName x #

to :: Rep ExeName x -> ExeName #

Hashable ExeName Source # 

Methods

hashWithSalt :: Int -> ExeName -> Int #

hash :: ExeName -> Int #

ToJSON ExeName Source # 
FromJSON ExeName Source # 
Store ExeName Source # 
type Rep ExeName Source # 
type Rep ExeName = D1 (MetaData "ExeName" "Stackage.Types" "stackage-curator-0.15.0.0-8trSdbTq3Td90E9cWwn9G6" True) (C1 (MetaCons "ExeName" PrefixI True) (S1 (MetaSel (Just Symbol "unExeName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data SimpleDesc Source #

A simplified package description that tracks:

  • Package dependencies
  • Build tool dependencies
  • Provided executables

It has fully resolved all conditionals

Constructors

SimpleDesc 

Fields

data Component Source #

Instances

data CabalFileInfo Source #

Information on the contents of a cabal file

Constructors

CabalFileInfo 

Fields

Helper functions

display :: Text a => a -> Text Source #

mkPackageName :: String -> PackageName #

Construct a PackageName from a String

mkPackageName is the inverse to unPackageName

Note: No validations are performed to ensure that the resulting PackageName is valid

Since: 2.0

unFlagName :: FlagName -> String #

Convert FlagName to String

Since: 2.0

mkFlagName :: String -> FlagName #

Construct a FlagName from a String

mkFlagName is the inverse to unFlagName

Note: No validations are performed to ensure that the resulting FlagName is valid

Since: 2.0