hpack-0.31.1: A modern format for Haskell packages

Safe HaskellNone
LanguageHaskell2010

Hpack.Config

Synopsis

Documentation

NOTE: This module is exposed to allow integration of Hpack into other tools. It is not meant for general use by end users. The following caveats apply:

  • The API is undocumented, consult the source instead.
  • The exposed types and functions primarily serve Hpack's own needs, not that of a public API. Breaking changes can happen as Hpack evolves.

As an Hpack user you either want to use the hpack executable or a build tool that supports Hpack (e.g. stack or cabal2nix).

newtype ProgramName Source #

Constructors

ProgramName String 
Instances
Eq ProgramName Source # 
Instance details

Defined in Hpack.Config

Show ProgramName Source # 
Instance details

Defined in Hpack.Config

IsString ProgramName Source # 
Instance details

Defined in Hpack.Config

packageDependencies :: Package -> [(String, DependencyInfo)] Source #

newtype Dependencies Source #

Constructors

Dependencies 

Fields

data Verbatim Source #

Instances
Eq Verbatim Source # 
Instance details

Defined in Hpack.Config

Show Verbatim Source # 
Instance details

Defined in Hpack.Config

FromValue Verbatim Source # 
Instance details

Defined in Hpack.Config

data CustomSetup Source #

Instances
Eq CustomSetup Source # 
Instance details

Defined in Hpack.Config

Show CustomSetup Source # 
Instance details

Defined in Hpack.Config

data Section a Source #

Instances
Functor Section Source # 
Instance details

Defined in Hpack.Config

Methods

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

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

Foldable Section Source # 
Instance details

Defined in Hpack.Config

Methods

fold :: Monoid m => Section m -> m #

foldMap :: Monoid m => (a -> m) -> Section a -> m #

foldr :: (a -> b -> b) -> b -> Section a -> b #

foldr' :: (a -> b -> b) -> b -> Section a -> b #

foldl :: (b -> a -> b) -> b -> Section a -> b #

foldl' :: (b -> a -> b) -> b -> Section a -> b #

foldr1 :: (a -> a -> a) -> Section a -> a #

foldl1 :: (a -> a -> a) -> Section a -> a #

toList :: Section a -> [a] #

null :: Section a -> Bool #

length :: Section a -> Int #

elem :: Eq a => a -> Section a -> Bool #

maximum :: Ord a => Section a -> a #

minimum :: Ord a => Section a -> a #

sum :: Num a => Section a -> a #

product :: Num a => Section a -> a #

Traversable Section Source # 
Instance details

Defined in Hpack.Config

Methods

traverse :: Applicative f => (a -> f b) -> Section a -> f (Section b) #

sequenceA :: Applicative f => Section (f a) -> f (Section a) #

mapM :: Monad m => (a -> m b) -> Section a -> m (Section b) #

sequence :: Monad m => Section (m a) -> m (Section a) #

Eq a => Eq (Section a) Source # 
Instance details

Defined in Hpack.Config

Methods

(==) :: Section a -> Section a -> Bool #

(/=) :: Section a -> Section a -> Bool #

Show a => Show (Section a) Source # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Section a -> ShowS #

show :: Section a -> String #

showList :: [Section a] -> ShowS #

data Conditional a Source #

Instances
Functor Conditional Source # 
Instance details

Defined in Hpack.Config

Methods

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

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

Foldable Conditional Source # 
Instance details

Defined in Hpack.Config

Methods

fold :: Monoid m => Conditional m -> m #

foldMap :: Monoid m => (a -> m) -> Conditional a -> m #

foldr :: (a -> b -> b) -> b -> Conditional a -> b #

foldr' :: (a -> b -> b) -> b -> Conditional a -> b #

foldl :: (b -> a -> b) -> b -> Conditional a -> b #

foldl' :: (b -> a -> b) -> b -> Conditional a -> b #

foldr1 :: (a -> a -> a) -> Conditional a -> a #

foldl1 :: (a -> a -> a) -> Conditional a -> a #

toList :: Conditional a -> [a] #

null :: Conditional a -> Bool #

length :: Conditional a -> Int #

elem :: Eq a => a -> Conditional a -> Bool #

maximum :: Ord a => Conditional a -> a #

minimum :: Ord a => Conditional a -> a #

sum :: Num a => Conditional a -> a #

product :: Num a => Conditional a -> a #

Traversable Conditional Source # 
Instance details

Defined in Hpack.Config

Methods

traverse :: Applicative f => (a -> f b) -> Conditional a -> f (Conditional b) #

sequenceA :: Applicative f => Conditional (f a) -> f (Conditional a) #

mapM :: Monad m => (a -> m b) -> Conditional a -> m (Conditional b) #

sequence :: Monad m => Conditional (m a) -> m (Conditional a) #

Eq a => Eq (Conditional a) Source # 
Instance details

Defined in Hpack.Config

Show a => Show (Conditional a) Source # 
Instance details

Defined in Hpack.Config

data Flag Source #

Instances
Eq Flag Source # 
Instance details

Defined in Hpack.Config

Methods

(==) :: Flag -> Flag -> Bool #

(/=) :: Flag -> Flag -> Bool #

Show Flag Source # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Flag -> ShowS #

show :: Flag -> String #

showList :: [Flag] -> ShowS #

data BuildType Source #

Constructors

Simple 
Configure 
Make 
Custom 
Instances
Bounded BuildType Source # 
Instance details

Defined in Hpack.Config

Enum BuildType Source # 
Instance details

Defined in Hpack.Config

Eq BuildType Source # 
Instance details

Defined in Hpack.Config

Show BuildType Source # 
Instance details

Defined in Hpack.Config

Generic BuildType Source # 
Instance details

Defined in Hpack.Config

Associated Types

type Rep BuildType :: Type -> Type #

FromValue BuildType Source # 
Instance details

Defined in Hpack.Config

type Rep BuildType Source # 
Instance details

Defined in Hpack.Config

type Rep BuildType = D1 (MetaData "BuildType" "Hpack.Config" "hpack-0.31.1-FaM9UiwyKTmeFWkLWsjE3" 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)))