hpack-0.35.4: A modern format for Haskell packages
Safe HaskellSafe-Inferred
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 

Instances

Instances details
IsString ProgramName Source # 
Instance details

Defined in Hpack.Error

Show ProgramName Source # 
Instance details

Defined in Hpack.Error

Eq ProgramName Source # 
Instance details

Defined in Hpack.Error

newtype Dependencies Source #

data BuildTool Source #

Instances

Instances details
Show BuildTool Source # 
Instance details

Defined in Hpack.Config

Eq BuildTool Source # 
Instance details

Defined in Hpack.Config

Ord BuildTool Source # 
Instance details

Defined in Hpack.Config

data Verbatim Source #

Instances

Instances details
Show Verbatim Source # 
Instance details

Defined in Hpack.Config

Eq Verbatim Source # 
Instance details

Defined in Hpack.Config

FromValue Verbatim Source # 
Instance details

Defined in Hpack.Config

data CustomSetup Source #

Instances

Instances details
Show CustomSetup Source # 
Instance details

Defined in Hpack.Config

Eq CustomSetup Source # 
Instance details

Defined in Hpack.Config

data Section a Source #

Instances

Instances details
Foldable Section Source # 
Instance details

Defined in Hpack.Config

Methods

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

foldMap :: Monoid m => (a -> m) -> Section a -> 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) #

Functor Section Source # 
Instance details

Defined in Hpack.Config

Methods

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

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

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 #

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

Defined in Hpack.Config

Methods

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

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

data Executable Source #

Instances

Instances details
Show Executable Source # 
Instance details

Defined in Hpack.Config

Eq Executable Source # 
Instance details

Defined in Hpack.Config

data Conditional a Source #

Instances

Instances details
Foldable Conditional Source # 
Instance details

Defined in Hpack.Config

Methods

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

foldMap :: Monoid m => (a -> m) -> Conditional a -> 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) #

Functor Conditional Source # 
Instance details

Defined in Hpack.Config

Methods

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

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

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

Defined in Hpack.Config

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

Defined in Hpack.Config

data Cond Source #

Instances

Instances details
Show Cond Source # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Cond -> ShowS #

show :: Cond -> String #

showList :: [Cond] -> ShowS #

Eq Cond Source # 
Instance details

Defined in Hpack.Config

Methods

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

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

FromValue Cond Source # 
Instance details

Defined in Hpack.Config

data Flag Source #

Instances

Instances details
Show Flag Source # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Flag -> ShowS #

show :: Flag -> String #

showList :: [Flag] -> ShowS #

Eq Flag Source # 
Instance details

Defined in Hpack.Config

Methods

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

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

newtype Language Source #

Constructors

Language String 

Instances

Instances details
IsString Language Source # 
Instance details

Defined in Hpack.Config

Show Language Source # 
Instance details

Defined in Hpack.Config

Eq Language Source # 
Instance details

Defined in Hpack.Config

FromValue Language Source # 
Instance details

Defined in Hpack.Config

data BuildType Source #

Constructors

Simple 
Configure 
Make 
Custom 

Instances

Instances details
Bounded BuildType Source # 
Instance details

Defined in Hpack.Config

Enum BuildType Source # 
Instance details

Defined in Hpack.Config

Show BuildType Source # 
Instance details

Defined in Hpack.Config

Eq BuildType Source # 
Instance details

Defined in Hpack.Config

FromValue BuildType Source # 
Instance details

Defined in Hpack.Config

newtype Path Source #

Constructors

Path 

Fields

Instances

Instances details
IsString Path Source # 
Instance details

Defined in Hpack.Config

Methods

fromString :: String -> Path #

Show Path Source # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

Eq Path Source # 
Instance details

Defined in Hpack.Config

Methods

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

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

Ord Path Source # 
Instance details

Defined in Hpack.Config

Methods

compare :: Path -> Path -> Ordering #

(<) :: Path -> Path -> Bool #

(<=) :: Path -> Path -> Bool #

(>) :: Path -> Path -> Bool #

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

max :: Path -> Path -> Path #

min :: Path -> Path -> Path #

newtype Module Source #

Constructors

Module 

Fields

Instances

Instances details
IsString Module Source # 
Instance details

Defined in Hpack.Module

Methods

fromString :: String -> Module #

Show Module Source # 
Instance details

Defined in Hpack.Module

Eq Module Source # 
Instance details

Defined in Hpack.Module

Methods

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

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

Ord Module Source # 
Instance details

Defined in Hpack.Module

FromValue Module Source # 
Instance details

Defined in Hpack.Module