<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p style="margin-bottom: 0in; line-height: 100%">Hi Cafe!</p>
<p style="margin-bottom: 0in; line-height: 100%">I have program
written in Haskell and Swift that runs on Mac. This program uses
some features that was introduced in last version of OS X
“Yosemite” 10.10, but some of my users use previous version
"Maverics " 10.9. Is there some technique that allows me to extend
my cabal file and specify which <span style="font-weight: normal">*version</span>*
of os is currently in use and don't load some of modules? </p>
<p style="margin-bottom: 0in; line-height: 100%">AFAIK, Cabal's
`conditional` doesn't provide such mechanism, but something like <br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">```<br>
if os(osx) && ver(=10.10)<br>
if os(osx) && ver(<=10.9)<br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">```<br>
will be nice.<br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
Maybe there is other approach to this problem?I don't want to use
`CPP` extension to handle this within code.<br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Thanks<br>
</p>
--<br>
Best regards,<br>
Sergey Bushnyak
</body>
</html>