Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ForeignLib = ForeignLib {}
- emptyForeignLib :: ForeignLib
- foreignLibModules :: ForeignLib -> [ModuleName]
- foreignLibIsShared :: ForeignLib -> Bool
- foreignLibVersion :: ForeignLib -> OS -> [Int]
- data LibVersionInfo
- mkLibVersionInfo :: (Int, Int, Int) -> LibVersionInfo
- libVersionInfoCRA :: LibVersionInfo -> (Int, Int, Int)
- libVersionNumber :: LibVersionInfo -> (Int, Int, Int)
- libVersionNumberShow :: LibVersionInfo -> String
- libVersionMajor :: LibVersionInfo -> Int
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.
ForeignLib | |
|
Instances
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
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.