Hi guys,<br><br>I'm new to haskell and I'm trying to make some calls to static methods of the Microsoft .NET framework with GHC 6.10.2 but I'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':<br> There are files missing in the `base' package,<br> try running 'ghc-pkg check'.<br> Use -v to see a list of the files searched for.<br>
ghc: panic! (the 'impossible' 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 "static foo" foo :: Int -> Int<br><br>main = do print (foo 5)<br></blockquote>To build the code above I'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>