Safe Haskell | None |
---|---|
Language | Haskell98 |
Gathering information about the build environment.
- data Environment = Environment {}
- getEnvironmentWith :: [(String, Build String)] -> Build Environment
- data Platform = Platform {}
- getHostPlatform :: Build Platform
- getHostName :: Build String
- getHostArch :: Build String
- getHostProcessor :: Build String
- getHostOS :: Build String
- getHostRelease :: Build String
- getVersionGHC :: FilePath -> Build String
- getVersionGCC :: FilePath -> Build String
Build Environment
data Environment Source #
The environment consists of the Platform
, and some tool versions.
:: [(String, Build String)] | List of tool names and commands to get their versions. |
-> Build Environment |
Get the current environment, including versions of these tools.
Build platform
Generic information about the platform we're running on.
getHostPlatform :: Build Platform Source #
Get information about the host platform.
getHostName :: Build String Source #
Get the name of this host, using uname
.
getHostArch :: Build String Source #
Get the host architecture, using uname
.
getHostProcessor :: Build String Source #
Get the host processor name, using uname
.
getHostRelease :: Build String Source #
Get the host operating system release, using uname
.