| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
FreeC.Application.Option.Version
Description
This module contains the implementation of the --version command.
The template Haskell language extension is used to include the hash of the Git commit at compile time.
Synopsis
- putVersionInfo :: IO ()
Documentation
putVersionInfo :: IO () Source #
Prints version information for the compiler, the compiler it has been compiled with and operating system it is running on.
The version string has the following format.
The Free Compiler, version <version> (<commit>, <compiler>, <os>, <arch>)
where
versionis the version of the compiler as specified in the Cabal configuration file.commitis the output ofgit describe --always --dirtyat compile time. The output has the formattag-n-ghash[-dirty]wheretagis the name of the latest tag,nis the number of commits since the latest tag,hashis the abbreviated Git commit hash and the suffix-dirtyis appended if there are uncommitted changes. If the compiler is not installed from the Git repository, this information is missing.osis the name of the operating system (e.g., "linux").archis the name of the machine architecture (e.g., "x86_64").