Cabal-2.2.0.0: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.Types.ForeignLib

Synopsis

Documentation

data ForeignLib Source #

A foreign library stanza is like a library stanza, except that the built code is intended for consumption by a non-Haskell client.

Constructors

ForeignLib 

Fields

Instances
Eq ForeignLib Source # 
Instance details
Data ForeignLib Source # 
Instance details

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ForeignLib -> c ForeignLib #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ForeignLib #

toConstr :: ForeignLib -> Constr #

dataTypeOf :: ForeignLib -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ForeignLib) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ForeignLib) #

gmapT :: (forall b. Data b => b -> b) -> ForeignLib -> ForeignLib #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ForeignLib -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ForeignLib -> r #

gmapQ :: (forall d. Data d => d -> u) -> ForeignLib -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ForeignLib -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ForeignLib -> m ForeignLib #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ForeignLib -> m ForeignLib #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ForeignLib -> m ForeignLib #

Read ForeignLib Source # 
Instance details
Show ForeignLib Source # 
Instance details
Generic ForeignLib Source # 
Instance details

Associated Types

type Rep ForeignLib :: * -> * #

Semigroup ForeignLib Source # 
Instance details
Monoid ForeignLib Source # 
Instance details
Binary ForeignLib Source # 
Instance details
NFData ForeignLib Source # 
Instance details

Methods

rnf :: ForeignLib -> () #

HasBuildInfo ForeignLib Source # 
Instance details

Methods

buildInfo :: Lens' ForeignLib BuildInfo Source #

buildable :: Lens' ForeignLib Bool Source #

buildTools :: Lens' ForeignLib [LegacyExeDependency] Source #

buildToolDepends :: Lens' ForeignLib [ExeDependency] Source #

cppOptions :: Lens' ForeignLib [String] Source #

asmOptions :: Lens' ForeignLib [String] Source #

cmmOptions :: Lens' ForeignLib [String] Source #

ccOptions :: Lens' ForeignLib [String] Source #

cxxOptions :: Lens' ForeignLib [String] Source #

ldOptions :: Lens' ForeignLib [String] Source #

pkgconfigDepends :: Lens' ForeignLib [PkgconfigDependency] Source #

frameworks :: Lens' ForeignLib [String] Source #

extraFrameworkDirs :: Lens' ForeignLib [String] Source #

asmSources :: Lens' ForeignLib [FilePath] Source #

cmmSources :: Lens' ForeignLib [FilePath] Source #

cSources :: Lens' ForeignLib [FilePath] Source #

cxxSources :: Lens' ForeignLib [FilePath] Source #

jsSources :: Lens' ForeignLib [FilePath] Source #

hsSourceDirs :: Lens' ForeignLib [FilePath] Source #

otherModules :: Lens' ForeignLib [ModuleName] Source #

virtualModules :: Lens' ForeignLib [ModuleName] Source #

autogenModules :: Lens' ForeignLib [ModuleName] Source #

defaultLanguage :: Lens' ForeignLib (Maybe Language) Source #

otherLanguages :: Lens' ForeignLib [Language] Source #

defaultExtensions :: Lens' ForeignLib [Extension] Source #

otherExtensions :: Lens' ForeignLib [Extension] Source #

oldExtensions :: Lens' ForeignLib [Extension] Source #

extraLibs :: Lens' ForeignLib [String] Source #

extraGHCiLibs :: Lens' ForeignLib [String] Source #

extraBundledLibs :: Lens' ForeignLib [String] Source #

extraLibFlavours :: Lens' ForeignLib [String] Source #

extraLibDirs :: Lens' ForeignLib [String] Source #

includeDirs :: Lens' ForeignLib [FilePath] Source #

includes :: Lens' ForeignLib [FilePath] Source #

installIncludes :: Lens' ForeignLib [FilePath] Source #

options :: Lens' ForeignLib [(CompilerFlavor, [String])] Source #

profOptions :: Lens' ForeignLib [(CompilerFlavor, [String])] Source #

sharedOptions :: Lens' ForeignLib [(CompilerFlavor, [String])] Source #

staticOptions :: Lens' ForeignLib [(CompilerFlavor, [String])] Source #

customFieldsBI :: Lens' ForeignLib [(String, String)] Source #

targetBuildDepends :: Lens' ForeignLib [Dependency] Source #

mixins :: Lens' ForeignLib [Mixin] Source #

type Rep ForeignLib Source # 
Instance details

emptyForeignLib :: ForeignLib Source #

An empty foreign library.

foreignLibModules :: ForeignLib -> [ModuleName] Source #

Modules defined by a foreign library.

foreignLibIsShared :: ForeignLib -> Bool Source #

Is the foreign library shared?

foreignLibVersion :: ForeignLib -> OS -> [Int] Source #

Get a version number for a foreign library. If we're on Linux, and a Linux version is specified, use that. If we're on Linux, and libtool-style version-info is specified, translate that field into appropriate version numbers. Otherwise, this feature is unsupported so we don't return any version data.

data LibVersionInfo Source #

Instances
Eq LibVersionInfo Source # 
Instance details
Data LibVersionInfo Source # 
Instance details

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LibVersionInfo -> c LibVersionInfo #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LibVersionInfo #

toConstr :: LibVersionInfo -> Constr #

dataTypeOf :: LibVersionInfo -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LibVersionInfo) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LibVersionInfo) #

gmapT :: (forall b. Data b => b -> b) -> LibVersionInfo -> LibVersionInfo #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LibVersionInfo -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LibVersionInfo -> r #

gmapQ :: (forall d. Data d => d -> u) -> LibVersionInfo -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> LibVersionInfo -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> LibVersionInfo -> m LibVersionInfo #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LibVersionInfo -> m LibVersionInfo #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LibVersionInfo -> m LibVersionInfo #

Ord LibVersionInfo Source # 
Instance details
Read LibVersionInfo Source # 
Instance details
Show LibVersionInfo Source # 
Instance details
Generic LibVersionInfo Source # 
Instance details

Associated Types

type Rep LibVersionInfo :: * -> * #

Binary LibVersionInfo Source # 
Instance details
NFData LibVersionInfo Source # 
Instance details

Methods

rnf :: LibVersionInfo -> () #

Pretty LibVersionInfo Source # 
Instance details
Parsec LibVersionInfo Source # 
Instance details
Text LibVersionInfo Source # 
Instance details
type Rep LibVersionInfo Source # 
Instance details

mkLibVersionInfo :: (Int, Int, Int) -> LibVersionInfo Source #

Construct LibVersionInfo from (current, revision, age) numbers.

For instance, mkLibVersionInfo (3,0,0) constructs a LibVersionInfo representing the version-info 3:0:0.

All version components must be non-negative.

libVersionInfoCRA :: LibVersionInfo -> (Int, Int, Int) Source #

From a given LibVersionInfo, extract the (current, revision, age) numbers.

libVersionNumber :: LibVersionInfo -> (Int, Int, Int) Source #

Given a version-info field, produce a major.minor.build version

libVersionNumberShow :: LibVersionInfo -> String Source #

Given a version-info field, return "major.minor.build" as a String

libVersionMajor :: LibVersionInfo -> Int Source #

Return the major version of a version-info field.