Query basic properties of the current platform.
All of these values are compile-time constants. If the special
magic in the package configure step was unable to determine the
correct value for something, it comes back as Nothing
.
- data OS_Type
- = MS_Windows
- | Unix
- os_type :: Maybe OS_Type
- compiler_name :: Maybe String
- compiler_version :: Maybe String
Operating system
A list of all possible operating system types.
MS_Windows | Some version of Microsoft Windows. |
Unix | Any sufficiently "Unix-like" system. |
os_type :: Maybe OS_TypeSource
The type of operating system under which we are running (or
Nothing
if this could not be detected).
Compiler
compiler_name :: Maybe StringSource
The name of the compiler (e.g., "GHC"
), or Nothing
if
this could not be detected.
compiler_version :: Maybe StringSource
The numerical version string for the compiler
(e.g., "6.10.2"
), or Nothing
if this could not be detected.
Local values
Your local copy of this package was configured with the following settings:
os_type = Just Unix compiler_name = Just "GHC" compiler_version = Just "7.0.3"