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 #

Constructors

ProgramName String 
Instances
Eq ProgramName # 
Instance details

Defined in Hpack.Config

Show ProgramName # 
Instance details

Defined in Hpack.Config

IsString ProgramName # 
Instance details

Defined in Hpack.Config

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

section :: a -> Section a #

type GitRef = String #

type GitUrl = String #

data BuildTool #

Instances
Eq BuildTool # 
Instance details

Defined in Hpack.Config

Ord BuildTool # 
Instance details

Defined in Hpack.Config

Show BuildTool # 
Instance details

Defined in Hpack.Config

data Verbatim #

Instances
Eq Verbatim # 
Instance details

Defined in Hpack.Config

Show Verbatim # 
Instance details

Defined in Hpack.Config

FromValue Verbatim # 
Instance details

Defined in Hpack.Config

data CustomSetup #

Instances
Eq CustomSetup # 
Instance details

Defined in Hpack.Config

Show CustomSetup # 
Instance details

Defined in Hpack.Config

data Section a #

Instances
Functor Section # 
Instance details

Defined in Hpack.Config

Methods

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

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

Foldable Section # 
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 # 
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) # 
Instance details

Defined in Hpack.Config

Methods

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

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

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

Defined in Hpack.Config

Methods

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

show :: Section a -> String #

showList :: [Section a] -> ShowS #

data Library #

Instances
Eq Library # 
Instance details

Defined in Hpack.Config

Methods

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

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

Show Library # 
Instance details

Defined in Hpack.Config

data Executable #

Instances
Eq Executable # 
Instance details

Defined in Hpack.Config

Show Executable # 
Instance details

Defined in Hpack.Config

data Conditional a #

Instances
Functor Conditional # 
Instance details

Defined in Hpack.Config

Methods

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

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

Foldable Conditional # 
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 # 
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) # 
Instance details

Defined in Hpack.Config

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

Defined in Hpack.Config

data Flag #

Instances
Eq Flag # 
Instance details

Defined in Hpack.Config

Methods

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

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

Show Flag # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Flag -> ShowS #

show :: Flag -> String #

showList :: [Flag] -> ShowS #

data BuildType #

Constructors

Simple 
Configure 
Make 
Custom 
Instances
Bounded BuildType # 
Instance details

Defined in Hpack.Config

Enum BuildType # 
Instance details

Defined in Hpack.Config

Eq BuildType # 
Instance details

Defined in Hpack.Config

Show BuildType # 
Instance details

Defined in Hpack.Config

Generic BuildType # 
Instance details

Defined in Hpack.Config

Associated Types

type Rep BuildType :: Type -> Type #

FromValue BuildType # 
Instance details

Defined in Hpack.Config

type Rep BuildType # 
Instance details

Defined in Hpack.Config

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