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

GHC cvs-ghc at haskell.org
Wed Oct 27 17:56:46 EDT 2010


#2614: Enumeration of values for `Sys.Info.os`, `Sys.Info.arch`
---------------------------------+------------------------------------------
    Reporter:  jsnx              |        Owner:  mjg         
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:  7.0.1       
   Component:  libraries/base    |      Version:  6.8.3       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by mjg):

  * owner:  => mjg


Comment:

 I've just listed all os(...) values occuring in Cabal files within a whole
 HackageDB:

 osx, darwin,
 freebsd, openbsd, netbsd,
 linux,
 mingw32, win32,
 solaris.

 For arch(...):
 i386, x86_64.

 Not sure if it helps, but I'd suggest to remove "Other" option from
 enumerations, since it allows to use values that may not be interpreted by
 Cabal. Interestingly most values are never used.
 May do this and add documentation, if permitted.

 Next step would be to email authors of those packages that use unsupported
 os() or arch() values.

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


More information about the Glasgow-haskell-bugs mailing list