X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FInfo.hs;h=92da1a64b7b43a364232f29a0f6e9cf894164cd3;hb=b77972bb8793136b82db08061fc2b1703499880a;hp=597f2c8266964f1e3f016c74f3b90e6371d42154;hpb=584b53061bc5101b39e273fcab4db29e52951fe4;p=ghc-base.git diff --git a/System/Info.hs b/System/Info.hs index 597f2c8..92da1a6 100644 --- a/System/Info.hs +++ b/System/Info.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE CPP #-} + ----------------------------------------------------------------------------- -- | -- Module : System.Info @@ -27,8 +29,8 @@ import Data.Version -- | The version of 'compilerName' with which the program was compiled -- or is being interpreted. compilerVersion :: Version -compilerVersion = Version {versionBranch=[maj,min], versionTags=[]} - where (maj,min) = compilerVersionRaw `divMod` 100 +compilerVersion = Version {versionBranch=[major, minor], versionTags=[]} + where (major, minor) = compilerVersionRaw `divMod` 100 -- | The operating system on which the program is running. os :: String