-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Detect which OS you're running on.
--
-- This package lets you easily query various facts about the system that
-- your code is running on. Currently, it reports whether the operating
-- system is "Windows" or "Unix", and also the name and version of the
-- Haskell compiler used.
--
-- This package implements lots of complicated trickery to determine the
-- build environment. Once built, other packages can query this
-- information without needing to do complex trickery themselves.
--
-- See also the included ReadMe.xhtml file.
--
-- Changes:
--
--
-- - If the configure step fails to detect the OS type, the configure
-- step now fails.
-- - A new file Manual.hs allows you to override the
-- auto-detected platform values with whatever you want. (See
-- ReadMe.xhtml for details.)
-- - All the platform queries no longer return Maybe values.
-- (This breaks API compatibility, hence the version bump.)
--
@package AC-BuildPlatform
@version 1.1.0
-- | 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.
module System.Platform
-- | A list of all possible operating system types.
data OS_Type
-- | Some version of Microsoft Windows.
MS_Windows :: OS_Type
-- | Any sufficiently "Unix-like" system.
Unix :: OS_Type
-- | The type of operating system under which we are running.
os_type :: OS_Type
-- | The name of the compiler (e.g., "GHC"), or "Unknown" if this
-- could not be detected.
compiler_name :: String
-- | The numerical version string for the compiler (e.g.,
-- "6.10.2"), or "" if this could not be detected.
compiler_version :: String
instance Eq OS_Type
instance Show OS_Type