1 -----------------------------------------------------------------------------
3 -- Module : System.Info
4 -- Copyright : (c) The University of Glasgow 2001
5 -- License : BSD-style (see the file libraries/base/LICENSE)
7 -- Maintainer : libraries@haskell.org
8 -- Stability : experimental
9 -- Portability : portable
11 -- Misc information about the characteristics of the host
12 -- architecture\/machine lucky enough to run your program.
14 -----------------------------------------------------------------------------
20 compilerName, -- :: String
21 compilerVersion -- :: Version
27 compilerVersion :: Version
28 compilerVersion = Version {versionBranch=[maj,min], versionTags=[]}
29 where (maj,min) = compilerVersionRaw `divMod` 100
31 os, arch, compilerName :: String
32 compilerVersionRaw :: Int
36 compilerName = "nhc98"
37 compilerVersionRaw = __NHC__
39 #elif defined(__GLASGOW_HASKELL__)
40 #include "ghcplatform.h"
44 compilerVersionRaw = __GLASGOW_HASKELL__
46 #elif defined(__HUGS__)
51 compilerVersionRaw = 0 -- ToDo
54 #error Unknown compiler name