hpack-0.38.0: 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 

Instances

Instances details
IsString ProgramName # 
Instance details

Defined in Hpack.Error

Show ProgramName # 
Instance details

Defined in Hpack.Error

Eq ProgramName # 
Instance details

Defined in Hpack.Error

section :: a -> Section a #

newtype Dependencies #

type GitRef = String #

type GitUrl = String #

data BuildTool #

Instances

Instances details
Show BuildTool # 
Instance details

Defined in Hpack.Config

Eq BuildTool # 
Instance details

Defined in Hpack.Config

Ord BuildTool # 
Instance details

Defined in Hpack.Config

data Verbatim #

Instances

Instances details
Show Verbatim # 
Instance details

Defined in Hpack.Config

Eq Verbatim # 
Instance details

Defined in Hpack.Config

FromValue Verbatim # 
Instance details

Defined in Hpack.Config

data VerbatimValue #

Instances

Instances details
Show VerbatimValue # 
Instance details

Defined in Hpack.Config

Eq VerbatimValue # 
Instance details

Defined in Hpack.Config

FromValue VerbatimValue # 
Instance details

Defined in Hpack.Config

data CustomSetup #

Instances

Instances details
Show CustomSetup # 
Instance details

Defined in Hpack.Config

Eq CustomSetup # 
Instance details

Defined in Hpack.Config

data Section a #

Instances

Instances details
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 #

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) #

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 #

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

Defined in Hpack.Config

Methods

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

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

data Library #

Instances

Instances details
Show Library # 
Instance details

Defined in Hpack.Config

Eq Library # 
Instance details

Defined in Hpack.Config

Methods

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

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

data Executable #

Instances

Instances details
Show Executable # 
Instance details

Defined in Hpack.Config

Eq Executable # 
Instance details

Defined in Hpack.Config

data Conditional a #

Instances

Instances details
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 #

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) #

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

Defined in Hpack.Config

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

Defined in Hpack.Config

data Cond #

Instances

Instances details
Show Cond # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Cond -> ShowS #

show :: Cond -> String #

showList :: [Cond] -> ShowS #

Eq Cond # 
Instance details

Defined in Hpack.Config

Methods

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

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

FromValue Cond # 
Instance details

Defined in Hpack.Config

Methods

fromValue :: Value -> Parser Cond #

data Flag #

Instances

Instances details
Show Flag # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Flag -> ShowS #

show :: Flag -> String #

showList :: [Flag] -> ShowS #

Eq Flag # 
Instance details

Defined in Hpack.Config

Methods

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

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

newtype Language #

Constructors

Language String 

Instances

Instances details
IsString Language # 
Instance details

Defined in Hpack.Config

Show Language # 
Instance details

Defined in Hpack.Config

Eq Language # 
Instance details

Defined in Hpack.Config

FromValue Language # 
Instance details

Defined in Hpack.Config

data BuildType #

Constructors

Simple 
Configure 
Make 
Custom 

Instances

Instances details
Bounded BuildType # 
Instance details

Defined in Hpack.Config

Enum BuildType # 
Instance details

Defined in Hpack.Config

Show BuildType # 
Instance details

Defined in Hpack.Config

Eq BuildType # 
Instance details

Defined in Hpack.Config

FromValue BuildType # 
Instance details

Defined in Hpack.Config

newtype Path #

Constructors

Path 

Fields

Instances

Instances details
IsString Path # 
Instance details

Defined in Hpack.Config

Methods

fromString :: String -> Path #

Show Path # 
Instance details

Defined in Hpack.Config

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

Eq Path # 
Instance details

Defined in Hpack.Config

Methods

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

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

Ord Path # 
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 #

Constructors

Module 

Fields

Instances

Instances details
IsString Module # 
Instance details

Defined in Hpack.Module

Methods

fromString :: String -> Module #

Show Module # 
Instance details

Defined in Hpack.Module

Eq Module # 
Instance details

Defined in Hpack.Module

Methods

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

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

Ord Module # 
Instance details

Defined in Hpack.Module

FromValue Module # 
Instance details

Defined in Hpack.Module