Hi,The issue about hidden packages can be solved by adding text to build depends in the cabal file. I added the latest version that could be compiled (0.11.0.8) but now this results.I think I agree with you to wait for GHC 7.x for the iPhone.build-iphone-haskell.sh running with ACTION= and PLATFORM_NAME=iphonesimulatorResolving dependencies...Configuring Visi-0.1...Warning: 'hs-source-dirs: ../core/src' is a relative path outside of thesource tree. This will not work when generating a tarball with 'sdist'.Preprocessing executables for Visi-0.1...Building Visi-0.1...[1 of 8] Compiling Visi.Util ( ../core/src/Visi/Util.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Util.o )[2 of 8] Compiling Visi.Expression ( ../core/src/Visi/Expression.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Expression.o )[3 of 8] Compiling Visi.Typer ( ../core/src/Visi/Typer.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Typer.o )[4 of 8] Compiling Visi.Parse ( ../core/src/Visi/Parse.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Parse.o )[5 of 8] Compiling Visi.Executor ( ../core/src/Visi/Executor.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Executor.o )[6 of 8] Compiling Visi.Runtime ( ../core/src/Visi/Runtime.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Runtime.o )../core/src/Visi/Runtime.hs:110:46:Couldn't match expected type `[Char]'against inferred type `Data.Text.Internal.Text'Expected type: [(String, t, Type)]Inferred type: [(Data.Text.Internal.Text, Expression, Type)]In the second argument of `map', namely `sinks'In the expression: map fromSink sinksOp 26 dec 2011, om 23:51 heeft David Pollak het volgende geschreven:I didn't, but I don't know that I should?Did you check out the qcon_demo tag? Master will not compile. I'm waiting for ghc-iPhone based on ghc 7 to loop back and get master compiling for iPad again.
I read about visi as a new language for the iPad, well I haven't one, but still it looks nice and simpleHi,... install 'parsec < 3.1'installs parsec,but I get some errors:one about can't find source for Visi.Snark in haskellthe second that ld can't find -lVisi, but that's maybe due to the previous errorThere is VisiPro in haskell ... and I changed the cabal file using VisiPro in stead of Visi for SnarkThen it's missing Data.text.I found 0.11.08, but the next error says missing ... it's a member of the hidden package.Well that's too much for the moment, I've no idea what that means, I've to look in the docs probablyTonOp 26 dec 2011, om 20:26 heeft David Pollak het volgende geschreven:On Mon, Dec 26, 2011 at 11:20 AM, Ton Biegstraaten <ton.biegstraaten@gmail.com> wrote:
Op 26 dec 2011, om 19:36 heeft David Pollak het volgende geschreven:Not yet :-)The following code compiles into a running iPad app (no rooting required):I did my compilation work on Snow Leopard with xcode 3.2.5. The code runs well (no crashes or anything else).Hope this helps.After installing this in xcode it needs parsecIt needs parsec >= 3, so:iphone-simulator-cabal install parsecResolving dependencies...iphone-simulator-cabal: The package requires Cabal library version -any &&>=1.8 but no suitable version is installed.iphone-simulator-cabal: Error: some packages failed to install:parsec-3.1.2 depends on text-0.11.1.12 which failed to install.text-0.11.1.12 failed during the configure step. The exception was:exit: ExitFailure 1iphone-simulator-cabal --versioncabal-install version 0.6.2using version 1.6.0.3 of the Cabal libraryI'm not sure if I can update the cabal libraryupdate gives:iphone-simulator-cabal updateDownloading the latest package list from hackage.haskell.orgNote: there is a new version of cabal-install available.To upgrade, run: cabal install cabal-installHope you can help me further?Dusting off my memory of the whole configuration fragility issue...I think I had to specify parsec 3.0.1 which was built against GHC 6.10. I don't remember the cabal syntax for specifying that exact version (perhaps someone else on the list can help with the right cabal command.)thanks,TonOn Fri, Dec 23, 2011 at 11:36 AM, Ton Biegstraaten <ton.biegstraaten@gmail.com> wrote:
Hi,
I'm new to this. I 've snow leopard highest version with xcode 3.2.6 and so target 4.3.3. My iPhone is a (jailbroken) 5.01.
I can run simple (hello world Objective C) examples on the iPhone (by `persuading' xcode to allow me :-)
Compiling haskelldraw is awfull, more than 1800 errors.
GetInBehind runs on the simulator but gives about 40 errors for the device, missing header files etc.
Reading the maillist gives some clues about versions and adjusting things, but they are to vague for me. I also read that the stuff works on xcode 3.2.5 with ios 4.2.
I downloaded this version from a torrent and I wander if it is useful to replace the current 3.2.6 with this previous version for getting the examples working.
I like haskell very much and it should be fun to use it in the phone.
I hope someone can give me some clues about downgrading or changing the current setup.
regards,
Ton
_______________________________________________
iPhone mailing list
iPhone@haskell.org
http://www.haskell.org/mailman/listinfo/iphone
--Visi.Pro, Cloud Computing for the Rest of Us http://visi.proLift, the simply functional web framework http://liftweb.net
--Visi.Pro, Cloud Computing for the Rest of Us http://visi.proLift, the simply functional web framework http://liftweb.net