[Haskell-cafe] Installing wxHaskel on Snow Leopard

Eduardo Sato eduardo.sato at gmail.com
Wed Aug 7 19:46:02 CEST 2013


Hello, guys. Has anybody tried to install wxhaskell on Snow Leopard?

I followed these instructions: http://www.haskell.org/haskellwiki/WxHaskell/Mac , but got an error: 

src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs:13085:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall safe "static wxLogWindow_Create" wxLogWindow_Create
        :: Ptr (TWindow a)
           -> CWString -> CBool -> CBool -> IO (Ptr (TLogWindow ()))

src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs:13085:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall safe "static wxLogWindow_Create" wxLogWindow_Create
        :: Ptr (TWindow a)
           -> CWString -> CBool -> CBool -> IO (Ptr (TLogWindow ()))
Failed to install wxcore-0.90.0.3
cabal: Error: some packages failed to install:
wx-0.90.0.1 depends on wxcore-0.90.0.3 which failed to install.
wxcore-0.90.0.3 failed during the building phase. The exception was:
ExitFailure 1

http://lpaste.net/91634

I'm using ghc 7.6.3. I've heard the above problems are related to GHC 7.6.3 being more pedantic about FFI declarations. Is there any way around it?

Thanks 

-- 
Eduardo Sato

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130807/0bc2eab7/attachment.htm>


More information about the Haskell-Cafe mailing list