Distribution.Types.BuildType

Cabal-syntax-3.12.0.0: A library for working with .cabal files

Safe Haskell | None
Language | Haskell2010

Distribution.Types.BuildType

Synopsis

- data BuildType
  - = Simple
  - | Configure
  - | Make
  - | Custom
- knownBuildTypes :: [BuildType]

# Documentation

data BuildType Source #

The type of build system used by this package.

Constructors

Simple | calls `Distribution.Simple.defaultMain`
Configure | calls `Distribution.Simple.defaultMainWithHooks defaultUserHooks`, which invokes `configure` to generate additional build information used by later phases.
Make | calls `Distribution.Make.defaultMain`
Custom | uses user-supplied `Setup.hs` or `Setup.lhs` (default)

#### Instances

Instances details

Parsec BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods parsec :: CabalParsing m => m BuildType Source #
Pretty BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods pretty :: BuildType -> Doc Source # prettyVersioned :: CabalSpecVersion -> BuildType -> Doc Source #
Structured BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods structure :: Proxy BuildType -> Structure Source # structureHash' :: Tagged BuildType MD5
Binary BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods put :: BuildType -> Put Source # get :: Get BuildType Source # putList :: [BuildType] -> Put Source #
NFData BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods rnf :: BuildType -> () Source #
Data BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BuildType -> c BuildType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BuildType # toConstr :: BuildType -> Constr # dataTypeOf :: BuildType -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BuildType) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BuildType) # gmapT :: (forall b. Data b => b -> b) -> BuildType -> BuildType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BuildType -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BuildType -> r # gmapQ :: (forall d. Data d => d -> u) -> BuildType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> BuildType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BuildType -> m BuildType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BuildType -> m BuildType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BuildType -> m BuildType #
Generic BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Associated Types
type Rep BuildType |
Instance details Defined in Distribution.Types.BuildType type Rep BuildType = D1 ('MetaData "BuildType" "Distribution.Types.BuildType" "Cabal-syntax-3.12.0.0-d5d4" 'False) ((C1 ('MetaCons "Simple" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Configure" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Make" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Custom" 'PrefixI 'False) (U1 :: Type -> Type)))
Methods from :: BuildType -> Rep BuildType x # to :: Rep BuildType x -> BuildType #
Read BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods readsPrec :: Int -> ReadS BuildType # readList :: ReadS [BuildType] # readPrec :: ReadPrec BuildType # readListPrec :: ReadPrec [BuildType] #
Show BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods showsPrec :: Int -> BuildType -> ShowS # show :: BuildType -> String # showList :: [BuildType] -> ShowS #
Eq BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods (==) :: BuildType -> BuildType -> Bool # (/=) :: BuildType -> BuildType -> Bool #
Ord BuildType Source # |
Instance details Defined in Distribution.Types.BuildType Methods compare :: BuildType -> BuildType -> Ordering # (<) :: BuildType -> BuildType -> Bool # (<=) :: BuildType -> BuildType -> Bool # (>) :: BuildType -> BuildType -> Bool # (>=) :: BuildType -> BuildType -> Bool # max :: BuildType -> BuildType -> BuildType # min :: BuildType -> BuildType -> BuildType #
type Rep BuildType Source # |
Instance details Defined in Distribution.Types.BuildType type Rep BuildType = D1 ('MetaData "BuildType" "Distribution.Types.BuildType" "Cabal-syntax-3.12.0.0-d5d4" 'False) ((C1 ('MetaCons "Simple" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Configure" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Make" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Custom" 'PrefixI 'False) (U1 :: Type -> Type)))

knownBuildTypes :: [BuildType] Source #