Hi,<div><br></div><div>Here are two examples:</div><div>a) unix-compat has one: <a href="https://github.com/jystic/unix-compat/blob/master/unix-compat.cabal">https://github.com/jystic/unix-compat/blob/master/unix-compat.cabal</a></div>
<div>and</div><div>b) Network library has a platform specific cabal: <a href="https://github.com/haskell/network/blob/master/network.cabal">https://github.com/haskell/network/blob/master/network.cabal</a> </div><div>Kindly note that network also expects a configure script to run - so it expects msys/cygwin on windows, for example.</div>
<div><br></div><div><br></div><div><br></div><div>hope that helps,</div><div><br></div><div>Hemanth<br><br><div class="gmail_quote">On Thu, Oct 25, 2012 at 12:46 AM, Jurriaan Hage <span dir="ltr">&lt;<a href="mailto:J.Hage@uu.nl" target="_blank">J.Hage@uu.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
in an effort to Cabalize the Helium compiler and make it available on Hackage, it would<br>
be helpful to have an example of a Cabal file that shows how to deal with compilation<br>
of platform dependent C-code. Anybody out there who has a sample for me?<br>
<br>
best,<br>
Jurriaan Hage<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>I drink I am thunk.<br>
</div>