Skip to content
Snippets Groups Projects
Commit e97aa58f authored by Mikhail Glushenkov's avatar Mikhail Glushenkov Committed by tibbe
Browse files

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 98a3feb2)
parent d65f1994
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment