[Haskell-iPhone] Installing various packages

David Pollak feeder.of.the.bears at gmail.com
Sat Nov 5 01:40:39 CET 2011


Howdy, 

I'm back to using GHC-iphone... I'm merging stuff I've been working on into an iPad app.

I'm using certain libraries like Parsec 3 (is Parsec 3 GHC 7 only?)  When I do a try to install Parsec:

dpp at oldboy:~/proj/LispHaskellIPad$ iphone-cabal install parsec
Warning: Error parsing config file /Users/dpp/.cabal/config:77:
Parse of field 'libsubdir' failed (paths with spaces must use Haskell String
syntax):
Warning: Using default configuration.
Resolving dependencies...
Configuring deepseq-1.2.0.1...
Preprocessing library deepseq-1.2.0.1...
Building deepseq-1.2.0.1...
[1 of 1] Compiling Control.DeepSeq  ( Control/DeepSeq.hs, dist/build/Control/DeepSeq.o )

In file included from /var/folders/kQ/kQnNu0yWEJWl+kNm1oRfTE+++TI/-Tmp-/ghc4575_0/ghc4575_0.hc:3:0:
    

/opt/iphone/lib/ghc-6.10.4-iphone/include/Stg.h:54:18:
     error: math.h: No such file or directory
iphone-cabal: Error: some packages failed to install:
deepseq-1.2.0.1 failed during the building phase. The exception was:
exit: ExitFailure 1
parsec-3.1.2 depends on deepseq-1.2.0.1 which failed to install.
text-0.11.1.9 depends on deepseq-1.2.0.1 which failed to install.
dpp at oldboy:~/proj/LispHaskellIPad$ 



Bad things happen.  Any pointers or hints to make iphone-cabal work for parsec?

Also, a note to the developers on the list... don't upgrade to Lion... Xcode 4 on Lion seems to not work at all with any of the Haskell stuff (iphone or GHC 7).

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/iphone/attachments/20111104/0486907f/attachment.htm>


More information about the iPhone mailing list