HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Modulecabal-install-3.18.1.0Haskell2010

Distribution.Client.Init.Types

Some types used by the 'cabal init' command.

  • 19 types
  • 1 class
  • 9 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.18.1.0 · Distribution.Client.Init.Types
  • Show PkgDescriptionDefined in cabal-install-3.18.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.18.1.0 · Distribution.Client.Init.Types
  • Show LibTargetDefined in cabal-install-3.18.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.18.1.0 · Distribution.Client.Init.Types
  • Show ExeTargetDefined in cabal-install-3.18.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.18.1.0 · Distribution.Client.Init.Types
  • Show TestTargetDefined in cabal-install-3.18.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

9 declarations
classclass Monad m => Interactive (m :: Type -> Type) where
#
Instances2Interactive
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 PromptIO a
#
Instances5Monad, Functor, Applicative, MonadIO, Interactive
  • Monad PromptIODefined in cabal-install-3.18.1.0 · Distribution.Client.Init.Types
  • Functor PromptIODefined in cabal-install-3.18.1.0 · Distribution.Client.Init.Types
  • Applicative PromptIODefined in cabal-install-3.18.1.0 · Distribution.Client.Init.Types
  • MonadIO PromptIODefined in cabal-install-3.18.1.0 · Distribution.Client.Init.Types
  • Interactive PromptIODefined in cabal-install-3.18.1.0 · Distribution.Client.Init.Types
newtypenewtype PurePrompt a
#
Instances4Monad, Functor, Applicative, Interactive
datadata Severity
#

Used to inform the intent of prompted messages.

Instances1Eq
  • Eq SeverityDefined in cabal-install-3.18.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