HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulecabal-install-3.18.1.0Haskell2010

Distribution.Client.Init.Types

Some types used by the 'cabal init' command.

Contents
  1. Data
  2. Targets and descriptions
  3. package types
  4. Main file
  5. Typeclasses
  6. Aliases
  7. File creator opts
  8. Formatters
  9. Other conveniences
Synopsis

Data

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

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

Aliases

File creator opts

Formatters

Other conveniences