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
29 #include "ghcplatform.h"
42 compilerName :: String
44 compilerName = "nhc98"
45 #elif defined(__GLASGOW_HASKELL__)
47 #elif defined(__HUGS__)
50 #error Unknown compiler name
53 compilerVersion :: Version
54 #ifdef __GLASGOW_HASKELL__
55 compilerVersion = Version {versionBranch=[maj,min], versionTags=[]}
56 where (maj,min) = __GLASGOW_HASKELL__ `divMod` 100