[project @ 2002-12-18 10:45:31 by malcolm]
[ghc-base.git] / System / Info.hs
1 -----------------------------------------------------------------------------
2 -- |
3 -- Module      :  System.Info
4 -- Copyright   :  (c) The University of Glasgow 2001
5 -- License     :  BSD-style (see the file libraries/base/LICENSE)
6 -- 
7 -- Maintainer  :  libraries@haskell.org
8 -- Stability   :  experimental
9 -- Portability :  portable
10 --
11 -- Misc information about the characteristics of the host 
12 -- architecture\/machine lucky enough to run your program.
13 --
14 -----------------------------------------------------------------------------
15
16 #ifndef __NHC__
17 #include "MachDeps.h"
18 #endif
19
20 module System.Info
21    (
22        os,                  -- :: String
23        arch                 -- :: String
24    ) where
25
26 import Prelude
27
28 #ifndef __NHC__
29
30 arch :: String
31 arch = HOST_ARCH
32
33 os :: String
34 os = HOST_OS
35
36 #else
37 os,arch ::String
38 #include "OSInfo.hs"
39 #endif