HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecabal-install-3.12.1.0Haskell2010

Distribution.Client.Init.Types

Some types used by the 'cabal init' command.

  • 17 types
  • 1 class
  • 7 values

Data

1 declaration
datadata InitFlags
#
Instances6Eq, Show, Generic, Semigroup, Monoid, Rep

Targets and descriptions

datadata PkgDescription
#

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

Instances2Eq, Show
  • Eq PkgDescriptionDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
  • Show PkgDescriptionDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
datadata LibTarget
#

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

Instances2Eq, Show
  • Eq LibTargetDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
  • Show LibTargetDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
datadata ExeTarget
#

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

Instances2Eq, Show
  • Eq ExeTargetDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
  • Show ExeTargetDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
datadata TestTarget
#

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

Instances2Eq, Show
  • Eq TestTargetDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
  • Show TestTargetDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types

package types

datadata PackageType
#

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

Instances4Eq, Show, Generic, Rep

Main file

Typeclasses

5 declarations
classclass Monad m => Interactive (m :: Type -> Type) where
#
Instances2Interactive
  • Interactive PurePromptDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
  • Interactive IODefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types
newtypenewtype BreakException
#

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.

Instances3Eq, Show, Exception
newtypenewtype PurePrompt a
#
Instances4Monad, Functor, Applicative, Interactive
datadata Severity
#

Used to inform the intent of prompted messages.

Instances1Eq
  • Eq SeverityDefined in cabal-install-3.12.1.0 · Distribution.Client.Init.Types

Aliases

2 declarations
typetype IsLiterate = Bool
#

Convenience alias for the literate haskell flag

typetype IsSimple = Bool
#

Convenience alias for generating simple projects

File creator opts

2 declarations

Formatters

1 declaration

Other conveniences

1 declaration