[Hackage] #158: if os(windows) does not work
Hackage
trac at galois.com
Tue Sep 25 08:52:00 EDT 2007
#158: if os(windows) does not work
------------------------------+---------------------------------------------
Reporter: duncan | Owner:
Type: defect | Status: new
Priority: high | Milestone: Cabal-1.2
Component: Cabal | Version: 1.2.0
Severity: normal | Keywords:
Difficulty: easy (<4 hours) | Ghcversion: 6.4.2
Platform: Linux |
------------------------------+---------------------------------------------
The {{{os}}} condition currently uses the {{{System.Info.os :: String}}}
to check if we're on the OS specified. This is bad and wrong since in GHC
at least on Windows this string is {{{"mingw32"}}}. For configurations
it's ok if this works:
{{{
if os(mingw32)
blah
}}}
but it's essential that this works:
{{{
if os(windows)
blah
}}}
At a bare minimum we should add an alias system, such that we can specify
{{{windows}}} and {{{solaris}}} rather than the cryptic {{{mingw32}}} and
{{{solaris2}}}. I suggest that comparisons also be case insensetive.
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/158>
Hackage <http://example.com/>
My example project
More information about the cabal-devel
mailing list