[commit: packages/Cabal] ghc-head: Add some more OS aliases. (e97aa58)

git at git.haskell.org git at git.haskell.org
Thu Jan 16 16:04:07 UTC 2014


Repository : ssh://git@git.haskell.org/Cabal

On branch  : ghc-head
Link       : http://git.haskell.org/packages/Cabal.git/commitdiff/e97aa58f68519db54de1c62339459ebb88aed069

>---------------------------------------------------------------

commit e97aa58f68519db54de1c62339459ebb88aed069
Author: Mikhail Glushenkov <mikhail.glushenkov at gmail.com>
Date:   Fri Jan 10 15:24:52 2014 +0100

    Add some more OS aliases.
    
    Fixes #1641. Based on a patch by Karel Gardas.
    
    The 'Compat' classification strictness type is confusing and should IMO be
    merged with 'Permissive'.
    
    (cherry picked from commit 98a3feb23364897779dd665758949555a84dc5b8)


>---------------------------------------------------------------

e97aa58f68519db54de1c62339459ebb88aed069
 Cabal/Distribution/System.hs |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Cabal/Distribution/System.hs b/Cabal/Distribution/System.hs
index a18e491..6ab43a6 100644
--- a/Cabal/Distribution/System.hs
+++ b/Cabal/Distribution/System.hs
@@ -84,12 +84,14 @@ knownOSs = [Linux, Windows, OSX
            ,IOS]
 
 osAliases :: ClassificationStrictness -> OS -> [String]
-osAliases Permissive Windows = ["mingw32", "cygwin32"]
+osAliases Permissive Windows = ["mingw32", "win32", "cygwin32"]
 osAliases Compat     Windows = ["mingw32", "win32"]
 osAliases _          OSX     = ["darwin"]
 osAliases _          IOS     = ["ios"]
 osAliases Permissive FreeBSD = ["kfreebsdgnu"]
+osAliases Compat     FreeBSD = ["kfreebsdgnu"]
 osAliases Permissive Solaris = ["solaris2"]
+osAliases Compat     Solaris = ["solaris2"]
 osAliases _          _       = []
 
 instance Text OS where



More information about the ghc-commits mailing list