Hi guys,<br><br>I&#39;m new to haskell and I&#39;m trying to make some calls to static methods of the Microsoft .NET framework with GHC 6.10.2 but I&#39;m getting the follwoing error:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
GHC error in desugarer lookup in main:Main:<br>  Failed to load interface for `GHC.Dotnet&#39;:<br>    There are files missing in the `base&#39; package,<br>    try running &#39;ghc-pkg check&#39;.<br>    Use -v to see a list of the files searched for.<br>
ghc: panic! (the &#39;impossible&#39; happened)<br>  (GHC version 6.10.2 for i386-unknown-mingw32):<br>        initDs IOEnv failure<br></blockquote><br>My haskell code is this:<br><br><blockquote>{-# LANGUAGE ForeignFunctionInterface #-}<br>
<br>module Main where<br><br>import Prelude<br>import Foreign<br><br>foreign import dotnet &quot;static foo&quot; foo :: Int -&gt; Int<br><br>main = do print (foo 5)<br></blockquote>To build the code above I&#39;m doing like this: ghc -fvia-C Main.hs<br>
<br>Am I forgeting something? Does this version of GHC supports FFI for .NET?<br><br>Regards,<br>Guilherme Oliveira<br><span class="il">MSc</span> <span class="il">Student</span>, UFPE - Brazil<br><br>