[GHC] #2614: Enumeration of values for `Sys.Info.os`, `Sys.Info.arch`

GHC trac at galois.com
Sat Sep 20 14:06:43 EDT 2008


#2614: Enumeration of values for `Sys.Info.os`, `Sys.Info.arch`
--------------------------------+-------------------------------------------
    Reporter:  jsnx             |        Owner:          
        Type:  feature request  |       Status:  new     
    Priority:  normal           |    Milestone:          
   Component:  libraries/base   |      Version:  6.8.3   
    Severity:  minor            |   Resolution:          
    Keywords:                   |     Testcase:          
Architecture:  Unknown          |           Os:  Multiple
--------------------------------+-------------------------------------------
Comment (by jsnx):

 Replying to [comment:1 duncan]:
 > Cabal does use an enumeration, defined in `Distribution.System`. It also
 has equivalents of `System.Info.arch` and `os` but using the enumeration
 type.

 The values defined in the Cabal enumeration do not have a clear
 relationship to those actually in Cabal files.

  *  Where is `freebsd`? (I see it is in the latest Cabal, but was it
 neglected in the past? I don't think so...)

  *  Can I write `if os(os x) ...` in a Cabal file? (I seem to have it as
 `darwin`.)

 Were it not for the fact that Cabal specifically points to `System.Info`,
 I would have filed this bug against Cabal.

 Even if Cabal provided everything, it is still desirable that the
 documentation for `System.Info` should mention its possible values. Some
 things will always be treasure hunts but this need not be one of them.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2614#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list