cabal-install-3.8.1.0: The command-line interface for Cabal and Hackage.
Copyright(c) Brent Yorgey Benedikt Huber 2009
LicenseBSD-like
Maintainercabal-devel@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.Init.Types

Description

Some types used by the 'cabal init' command.

Synopsis

Data

data InitFlags Source #

InitFlags is a subset of flags available in the .cabal file that represent options that are relevant to the init command process.

Instances

Instances details
Eq InitFlags Source # 
Instance details

Defined in Distribution.Client.Init.Types

Show InitFlags Source # 
Instance details

Defined in Distribution.Client.Init.Types

Generic InitFlags Source # 
Instance details

Defined in Distribution.Client.Init.Types

Associated Types

type Rep InitFlags :: Type -> Type #

Semigroup InitFlags Source # 
Instance details

Defined in Distribution.Client.Init.Types

Monoid InitFlags Source # 
Instance details

Defined in Distribution.Client.Init.Types

type Rep InitFlags Source # 
Instance details

Defined in Distribution.Client.Init.Types

type Rep InitFlags = D1 ('MetaData "InitFlags" "Distribution.Client.Init.Types" "cabal-install-3.8.1.0-7iNu5HGLMqL9QLfLAUJqbd" 'False) (C1 ('MetaCons "InitFlags" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "interactive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just "quiet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just "packageDir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "noComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just "minimal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just "simpleProject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just "packageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PackageName)) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Version))))) :*: (((S1 ('MetaSel ('Just "cabalVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag CabalSpecVersion)) :*: S1 ('MetaSel ('Just "license") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag SpecLicense))) :*: (S1 ('MetaSel ('Just "author") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: S1 ('MetaSel ('Just "email") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)))) :*: ((S1 ('MetaSel ('Just "homepage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: S1 ('MetaSel ('Just "synopsis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String))) :*: (S1 ('MetaSel ('Just "category") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: S1 ('MetaSel ('Just "extraSrc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])))))) :*: ((((S1 ('MetaSel ('Just "extraDoc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])) :*: S1 ('MetaSel ('Just "packageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PackageType))) :*: (S1 ('MetaSel ('Just "mainIs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "language") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Language)))) :*: ((S1 ('MetaSel ('Just "exposedModules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [ModuleName])) :*: S1 ('MetaSel ('Just "otherModules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [ModuleName]))) :*: (S1 ('MetaSel ('Just "otherExts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [Extension])) :*: S1 ('MetaSel ('Just "dependencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [Dependency]))))) :*: (((S1 ('MetaSel ('Just "applicationDirs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])) :*: S1 ('MetaSel ('Just "sourceDirs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String]))) :*: (S1 ('MetaSel ('Just "buildTools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])) :*: S1 ('MetaSel ('Just "initializeTestSuite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just "testDirs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])) :*: S1 ('MetaSel ('Just "initHcPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))) :*: (S1 ('MetaSel ('Just "initVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)) :*: S1 ('MetaSel ('Just "overwrite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))))))

Targets and descriptions

data PkgDescription Source #

PkgDescription represents the relevant options set by the user when building a package description during the init command process.

data LibTarget Source #

LibTarget represents the relevant options set by the user when building a library package during the init command process.

Instances

Instances details
Eq LibTarget Source # 
Instance details

Defined in Distribution.Client.Init.Types

Show LibTarget Source # 
Instance details

Defined in Distribution.Client.Init.Types

data ExeTarget Source #

ExeTarget represents the relevant options set by the user when building an executable package.

Instances

Instances details
Eq ExeTarget Source # 
Instance details

Defined in Distribution.Client.Init.Types

Show ExeTarget Source # 
Instance details

Defined in Distribution.Client.Init.Types

data TestTarget Source #

TestTarget represents the relevant options set by the user when building a library package.

Instances

Instances details
Eq TestTarget Source # 
Instance details

Defined in Distribution.Client.Init.Types

Show TestTarget Source # 
Instance details

Defined in Distribution.Client.Init.Types

package types

data PackageType Source #

Enum to denote whether the user wants to build a library target, executable target, library and executable targets, or a standalone test suite.

Instances

Instances details
Eq PackageType Source # 
Instance details

Defined in Distribution.Client.Init.Types

Show PackageType Source # 
Instance details

Defined in Distribution.Client.Init.Types

Generic PackageType Source # 
Instance details

Defined in Distribution.Client.Init.Types

Associated Types

type Rep PackageType :: Type -> Type #

type Rep PackageType Source # 
Instance details

Defined in Distribution.Client.Init.Types

type Rep PackageType = D1 ('MetaData "PackageType" "Distribution.Client.Init.Types" "cabal-install-3.8.1.0-7iNu5HGLMqL9QLfLAUJqbd" 'False) ((C1 ('MetaCons "Library" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Executable" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LibraryAndExecutable" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TestSuite" 'PrefixI 'False) (U1 :: Type -> Type)))

Main file

data HsFilePath Source #

Instances

Instances details
Eq HsFilePath Source # 
Instance details

Defined in Distribution.Client.Init.Types

Show HsFilePath Source # 
Instance details

Defined in Distribution.Client.Init.Types

data HsFileType Source #

Instances

Instances details
Eq HsFileType Source # 
Instance details

Defined in Distribution.Client.Init.Types

Show HsFileType Source # 
Instance details

Defined in Distribution.Client.Init.Types

Typeclasses

class Monad m => Interactive m where Source #

Instances

Instances details
Interactive IO Source # 
Instance details

Defined in Distribution.Client.Init.Types

Interactive PurePrompt Source # 
Instance details

Defined in Distribution.Client.Init.Types

newtype BreakException Source #

A pure exception thrown exclusively by the pure prompter to cancel infinite loops in the prompting process.

For example, in order to break on parse errors, or user-driven continuations that do not make sense to test.

Constructors

BreakException String 

newtype PurePrompt a Source #

Instances

Instances details
Monad PurePrompt Source # 
Instance details

Defined in Distribution.Client.Init.Types

Methods

(>>=) :: PurePrompt a -> (a -> PurePrompt b) -> PurePrompt b #

(>>) :: PurePrompt a -> PurePrompt b -> PurePrompt b #

return :: a -> PurePrompt a #

Functor PurePrompt Source # 
Instance details

Defined in Distribution.Client.Init.Types

Methods

fmap :: (a -> b) -> PurePrompt a -> PurePrompt b #

(<$) :: a -> PurePrompt b -> PurePrompt a #

Applicative PurePrompt Source # 
Instance details

Defined in Distribution.Client.Init.Types

Methods

pure :: a -> PurePrompt a #

(<*>) :: PurePrompt (a -> b) -> PurePrompt a -> PurePrompt b #

liftA2 :: (a -> b -> c) -> PurePrompt a -> PurePrompt b -> PurePrompt c #

(*>) :: PurePrompt a -> PurePrompt b -> PurePrompt b #

(<*) :: PurePrompt a -> PurePrompt b -> PurePrompt a #

Interactive PurePrompt Source # 
Instance details

Defined in Distribution.Client.Init.Types

data Severity Source #

Used to inform the intent of prompted messages.

Constructors

Log 
Info 
Warning 
Error 

Instances

Instances details
Eq Severity Source # 
Instance details

Defined in Distribution.Client.Init.Types

Show Severity Source # 
Instance details

Defined in Distribution.Client.Init.Types

Aliases

type IsLiterate = Bool Source #

Convenience alias for the literate haskell flag

type IsSimple = Bool Source #

Convenience alias for generating simple projects

File creator opts

Formatters

data FieldAnnotation Source #

Annotations for cabal file PrettyField.

Constructors

FieldAnnotation 

Fields

Other conveniences

data DefaultPrompt t Source #

Defines whether or not a prompt will have a default value, is optional, or is mandatory.

Instances

Instances details
Functor DefaultPrompt Source # 
Instance details

Defined in Distribution.Client.Init.Types

Methods

fmap :: (a -> b) -> DefaultPrompt a -> DefaultPrompt b #

(<$) :: a -> DefaultPrompt b -> DefaultPrompt a #

Eq t => Eq (DefaultPrompt t) Source # 
Instance details

Defined in Distribution.Client.Init.Types