X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FInfo.hs;h=02cd45de0bd2506ed9b3077a4b1ff7696a3957de;hb=b8ac498face4c8b16c06d30fbc86666b7dc28173;hp=fce5b4398e8f118c80432f8bf0bd4f7d327a45a9;hpb=746ef6a7fd71bb1e9ebe3cd107c5f9f79f3b7a68;p=ghc-base.git diff --git a/System/Info.hs b/System/Info.hs index fce5b43..02cd45d 100644 --- a/System/Info.hs +++ b/System/Info.hs @@ -2,18 +2,20 @@ -- | -- Module : System.Info -- Copyright : (c) The University of Glasgow 2001 --- License : BSD-style (see the file libraries/core/LICENSE) +-- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability : experimental -- Portability : portable -- -- Misc information about the characteristics of the host --- architecture/machine lucky enough to run your program. +-- architecture\/machine lucky enough to run your program. -- ----------------------------------------------------------------------------- +#ifndef __NHC__ #include "MachDeps.h" +#endif module System.Info ( @@ -23,8 +25,15 @@ module System.Info import Prelude +#ifndef __NHC__ + arch :: String arch = HOST_ARCH os :: String os = HOST_OS + +#else +os,arch ::String +#include "OSInfo.hs" +#endif