AC-BuildPlatform-1.0.0: Detect which OS you're running on.

System.Platform

Contents

Description

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.

Synopsis

Operating system

data OS_Type Source

A list of all possible operating system types.

Constructors

MS_Windows

Some version of Microsoft Windows.

Unix

Any sufficiently "Unix-like" system.

Instances

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"